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

package it.unimi.dsi.fastutil.shorts;

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

public interface ShortBytePair extends Pair<Short, Byte>
{
    short leftShort();
    
    @Deprecated
    default Short left() {
        return this.leftShort();
    }
    
    default ShortBytePair left(final short l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortBytePair left(final Short l) {
        return this.left((short)l);
    }
    
    default short firstShort() {
        return this.leftShort();
    }
    
    @Deprecated
    default Short first() {
        return this.firstShort();
    }
    
    default ShortBytePair first(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortBytePair first(final Short l) {
        return this.first((short)l);
    }
    
    default short keyShort() {
        return this.firstShort();
    }
    
    @Deprecated
    default Short key() {
        return this.keyShort();
    }
    
    default ShortBytePair key(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortBytePair key(final Short l) {
        return this.key((short)l);
    }
    
    byte rightByte();
    
    @Deprecated
    default Byte right() {
        return this.rightByte();
    }
    
    default ShortBytePair right(final byte r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortBytePair right(final Byte l) {
        return this.right((byte)l);
    }
    
    default byte secondByte() {
        return this.rightByte();
    }
    
    @Deprecated
    default Byte second() {
        return this.secondByte();
    }
    
    default ShortBytePair second(final byte r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortBytePair second(final Byte l) {
        return this.second((byte)l);
    }
    
    default byte valueByte() {
        return this.rightByte();
    }
    
    @Deprecated
    default Byte value() {
        return this.valueByte();
    }
    
    default ShortBytePair value(final byte r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortBytePair value(final Byte l) {
        return this.value((byte)l);
    }
    
    default ShortBytePair of(final short left, final byte right) {
        return new ShortByteImmutablePair(left, right);
    }
    
    default Comparator<ShortBytePair> lexComparator() {
        return (x, y) -> {
            final int t = Short.compare(x.leftShort(), y.leftShort());
            if (t != 0) {
                return t;
            }
            else {
                return Byte.compare(x.rightByte(), y.rightByte());
            }
        };
    }
}
