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

package it.unimi.dsi.fastutil.booleans;

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

public interface BooleanShortPair extends Pair<Boolean, Short>
{
    boolean leftBoolean();
    
    @Deprecated
    default Boolean left() {
        return this.leftBoolean();
    }
    
    default BooleanShortPair left(final boolean l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default BooleanShortPair left(final Boolean l) {
        return this.left((boolean)l);
    }
    
    default boolean firstBoolean() {
        return this.leftBoolean();
    }
    
    @Deprecated
    default Boolean first() {
        return this.firstBoolean();
    }
    
    default BooleanShortPair first(final boolean l) {
        return this.left(l);
    }
    
    @Deprecated
    default BooleanShortPair first(final Boolean l) {
        return this.first((boolean)l);
    }
    
    default boolean keyBoolean() {
        return this.firstBoolean();
    }
    
    @Deprecated
    default Boolean key() {
        return this.keyBoolean();
    }
    
    default BooleanShortPair key(final boolean l) {
        return this.left(l);
    }
    
    @Deprecated
    default BooleanShortPair key(final Boolean l) {
        return this.key((boolean)l);
    }
    
    short rightShort();
    
    @Deprecated
    default Short right() {
        return this.rightShort();
    }
    
    default BooleanShortPair right(final short r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default BooleanShortPair right(final Short l) {
        return this.right((short)l);
    }
    
    default short secondShort() {
        return this.rightShort();
    }
    
    @Deprecated
    default Short second() {
        return this.secondShort();
    }
    
    default BooleanShortPair second(final short r) {
        return this.right(r);
    }
    
    @Deprecated
    default BooleanShortPair second(final Short l) {
        return this.second((short)l);
    }
    
    default short valueShort() {
        return this.rightShort();
    }
    
    @Deprecated
    default Short value() {
        return this.valueShort();
    }
    
    default BooleanShortPair value(final short r) {
        return this.right(r);
    }
    
    @Deprecated
    default BooleanShortPair value(final Short l) {
        return this.value((short)l);
    }
    
    default BooleanShortPair of(final boolean left, final short right) {
        return new BooleanShortImmutablePair(left, right);
    }
    
    default Comparator<BooleanShortPair> lexComparator() {
        return (x, y) -> {
            final int t = Boolean.compare(x.leftBoolean(), y.leftBoolean());
            if (t != 0) {
                return t;
            }
            else {
                return Short.compare(x.rightShort(), y.rightShort());
            }
        };
    }
}
