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

package it.unimi.dsi.fastutil.booleans;

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

public interface BooleanBytePair extends Pair<Boolean, Byte>
{
    boolean leftBoolean();
    
    @Deprecated
    default Boolean left() {
        return this.leftBoolean();
    }
    
    default BooleanBytePair left(final boolean l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default BooleanBytePair left(final Boolean l) {
        return this.left((boolean)l);
    }
    
    default boolean firstBoolean() {
        return this.leftBoolean();
    }
    
    @Deprecated
    default Boolean first() {
        return this.firstBoolean();
    }
    
    default BooleanBytePair first(final boolean l) {
        return this.left(l);
    }
    
    @Deprecated
    default BooleanBytePair first(final Boolean l) {
        return this.first((boolean)l);
    }
    
    default boolean keyBoolean() {
        return this.firstBoolean();
    }
    
    @Deprecated
    default Boolean key() {
        return this.keyBoolean();
    }
    
    default BooleanBytePair key(final boolean l) {
        return this.left(l);
    }
    
    @Deprecated
    default BooleanBytePair key(final Boolean l) {
        return this.key((boolean)l);
    }
    
    byte rightByte();
    
    @Deprecated
    default Byte right() {
        return this.rightByte();
    }
    
    default BooleanBytePair right(final byte r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default BooleanBytePair right(final Byte l) {
        return this.right((byte)l);
    }
    
    default byte secondByte() {
        return this.rightByte();
    }
    
    @Deprecated
    default Byte second() {
        return this.secondByte();
    }
    
    default BooleanBytePair second(final byte r) {
        return this.right(r);
    }
    
    @Deprecated
    default BooleanBytePair second(final Byte l) {
        return this.second((byte)l);
    }
    
    default byte valueByte() {
        return this.rightByte();
    }
    
    @Deprecated
    default Byte value() {
        return this.valueByte();
    }
    
    default BooleanBytePair value(final byte r) {
        return this.right(r);
    }
    
    @Deprecated
    default BooleanBytePair value(final Byte l) {
        return this.value((byte)l);
    }
    
    default BooleanBytePair of(final boolean left, final byte right) {
        return new BooleanByteImmutablePair(left, right);
    }
    
    default Comparator<BooleanBytePair> lexComparator() {
        return (x, y) -> {
            final int t = Boolean.compare(x.leftBoolean(), y.leftBoolean());
            if (t != 0) {
                return t;
            }
            else {
                return Byte.compare(x.rightByte(), y.rightByte());
            }
        };
    }
}
