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

package it.unimi.dsi.fastutil.shorts;

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

public interface ShortIntPair extends Pair<Short, Integer>
{
    short leftShort();
    
    @Deprecated
    default Short left() {
        return this.leftShort();
    }
    
    default ShortIntPair left(final short l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortIntPair left(final Short l) {
        return this.left((short)l);
    }
    
    default short firstShort() {
        return this.leftShort();
    }
    
    @Deprecated
    default Short first() {
        return this.firstShort();
    }
    
    default ShortIntPair first(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortIntPair first(final Short l) {
        return this.first((short)l);
    }
    
    default short keyShort() {
        return this.firstShort();
    }
    
    @Deprecated
    default Short key() {
        return this.keyShort();
    }
    
    default ShortIntPair key(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortIntPair key(final Short l) {
        return this.key((short)l);
    }
    
    int rightInt();
    
    @Deprecated
    default Integer right() {
        return this.rightInt();
    }
    
    default ShortIntPair right(final int r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortIntPair right(final Integer l) {
        return this.right((int)l);
    }
    
    default int secondInt() {
        return this.rightInt();
    }
    
    @Deprecated
    default Integer second() {
        return this.secondInt();
    }
    
    default ShortIntPair second(final int r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortIntPair second(final Integer l) {
        return this.second((int)l);
    }
    
    default int valueInt() {
        return this.rightInt();
    }
    
    @Deprecated
    default Integer value() {
        return this.valueInt();
    }
    
    default ShortIntPair value(final int r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortIntPair value(final Integer l) {
        return this.value((int)l);
    }
    
    default ShortIntPair of(final short left, final int right) {
        return new ShortIntImmutablePair(left, right);
    }
    
    default Comparator<ShortIntPair> lexComparator() {
        return (x, y) -> {
            final int t = Short.compare(x.leftShort(), y.leftShort());
            if (t != 0) {
                return t;
            }
            else {
                return Integer.compare(x.rightInt(), y.rightInt());
            }
        };
    }
}
