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

package it.unimi.dsi.fastutil.shorts;

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

public interface ShortBooleanPair extends Pair<Short, Boolean>
{
    short leftShort();
    
    @Deprecated
    default Short left() {
        return this.leftShort();
    }
    
    default ShortBooleanPair left(final short l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortBooleanPair left(final Short l) {
        return this.left((short)l);
    }
    
    default short firstShort() {
        return this.leftShort();
    }
    
    @Deprecated
    default Short first() {
        return this.firstShort();
    }
    
    default ShortBooleanPair first(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortBooleanPair first(final Short l) {
        return this.first((short)l);
    }
    
    default short keyShort() {
        return this.firstShort();
    }
    
    @Deprecated
    default Short key() {
        return this.keyShort();
    }
    
    default ShortBooleanPair key(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortBooleanPair key(final Short l) {
        return this.key((short)l);
    }
    
    boolean rightBoolean();
    
    @Deprecated
    default Boolean right() {
        return this.rightBoolean();
    }
    
    default ShortBooleanPair right(final boolean r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortBooleanPair right(final Boolean l) {
        return this.right((boolean)l);
    }
    
    default boolean secondBoolean() {
        return this.rightBoolean();
    }
    
    @Deprecated
    default Boolean second() {
        return this.secondBoolean();
    }
    
    default ShortBooleanPair second(final boolean r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortBooleanPair second(final Boolean l) {
        return this.second((boolean)l);
    }
    
    default boolean valueBoolean() {
        return this.rightBoolean();
    }
    
    @Deprecated
    default Boolean value() {
        return this.valueBoolean();
    }
    
    default ShortBooleanPair value(final boolean r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortBooleanPair value(final Boolean l) {
        return this.value((boolean)l);
    }
    
    default ShortBooleanPair of(final short left, final boolean right) {
        return new ShortBooleanImmutablePair(left, right);
    }
    
    default Comparator<ShortBooleanPair> lexComparator() {
        return (x, y) -> {
            final int t = Short.compare(x.leftShort(), y.leftShort());
            if (t != 0) {
                return t;
            }
            else {
                return Boolean.compare(x.rightBoolean(), y.rightBoolean());
            }
        };
    }
}
