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

package it.unimi.dsi.fastutil.shorts;

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

public interface ShortLongPair extends Pair<Short, Long>
{
    short leftShort();
    
    @Deprecated
    default Short left() {
        return this.leftShort();
    }
    
    default ShortLongPair left(final short l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortLongPair left(final Short l) {
        return this.left((short)l);
    }
    
    default short firstShort() {
        return this.leftShort();
    }
    
    @Deprecated
    default Short first() {
        return this.firstShort();
    }
    
    default ShortLongPair first(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortLongPair first(final Short l) {
        return this.first((short)l);
    }
    
    default short keyShort() {
        return this.firstShort();
    }
    
    @Deprecated
    default Short key() {
        return this.keyShort();
    }
    
    default ShortLongPair key(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortLongPair key(final Short l) {
        return this.key((short)l);
    }
    
    long rightLong();
    
    @Deprecated
    default Long right() {
        return this.rightLong();
    }
    
    default ShortLongPair right(final long r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortLongPair right(final Long l) {
        return this.right((long)l);
    }
    
    default long secondLong() {
        return this.rightLong();
    }
    
    @Deprecated
    default Long second() {
        return this.secondLong();
    }
    
    default ShortLongPair second(final long r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortLongPair second(final Long l) {
        return this.second((long)l);
    }
    
    default long valueLong() {
        return this.rightLong();
    }
    
    @Deprecated
    default Long value() {
        return this.valueLong();
    }
    
    default ShortLongPair value(final long r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortLongPair value(final Long l) {
        return this.value((long)l);
    }
    
    default ShortLongPair of(final short left, final long right) {
        return new ShortLongImmutablePair(left, right);
    }
    
    default Comparator<ShortLongPair> lexComparator() {
        return (x, y) -> {
            final int t = Short.compare(x.leftShort(), y.leftShort());
            if (t != 0) {
                return t;
            }
            else {
                return Long.compare(x.rightLong(), y.rightLong());
            }
        };
    }
}
