// 
// Decompiled by Procyon v0.6.0
// 

package it.unimi.dsi.fastutil.bytes;

import java.util.Comparator;
import it.unimi.dsi.fastutil.Pair;

public interface ByteBooleanPair extends Pair<Byte, Boolean>
{
    byte leftByte();
    
    @Deprecated
    default Byte left() {
        return this.leftByte();
    }
    
    default ByteBooleanPair left(final byte l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ByteBooleanPair left(final Byte l) {
        return this.left((byte)l);
    }
    
    default byte firstByte() {
        return this.leftByte();
    }
    
    @Deprecated
    default Byte first() {
        return this.firstByte();
    }
    
    default ByteBooleanPair first(final byte l) {
        return this.left(l);
    }
    
    @Deprecated
    default ByteBooleanPair first(final Byte l) {
        return this.first((byte)l);
    }
    
    default byte keyByte() {
        return this.firstByte();
    }
    
    @Deprecated
    default Byte key() {
        return this.keyByte();
    }
    
    default ByteBooleanPair key(final byte l) {
        return this.left(l);
    }
    
    @Deprecated
    default ByteBooleanPair key(final Byte l) {
        return this.key((byte)l);
    }
    
    boolean rightBoolean();
    
    @Deprecated
    default Boolean right() {
        return this.rightBoolean();
    }
    
    default ByteBooleanPair right(final boolean r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ByteBooleanPair right(final Boolean l) {
        return this.right((boolean)l);
    }
    
    default boolean secondBoolean() {
        return this.rightBoolean();
    }
    
    @Deprecated
    default Boolean second() {
        return this.secondBoolean();
    }
    
    default ByteBooleanPair second(final boolean r) {
        return this.right(r);
    }
    
    @Deprecated
    default ByteBooleanPair second(final Boolean l) {
        return this.second((boolean)l);
    }
    
    default boolean valueBoolean() {
        return this.rightBoolean();
    }
    
    @Deprecated
    default Boolean value() {
        return this.valueBoolean();
    }
    
    default ByteBooleanPair value(final boolean r) {
        return this.right(r);
    }
    
    @Deprecated
    default ByteBooleanPair value(final Boolean l) {
        return this.value((boolean)l);
    }
    
    default ByteBooleanPair of(final byte left, final boolean right) {
        return new ByteBooleanImmutablePair(left, right);
    }
    
    default Comparator<ByteBooleanPair> lexComparator() {
        return (x, y) -> {
            final int t = Byte.compare(x.leftByte(), y.leftByte());
            if (t != 0) {
                return t;
            }
            else {
                return Boolean.compare(x.rightBoolean(), y.rightBoolean());
            }
        };
    }
}
