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

package it.unimi.dsi.fastutil.shorts;

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

public interface ShortCharPair extends Pair<Short, Character>
{
    short leftShort();
    
    @Deprecated
    default Short left() {
        return this.leftShort();
    }
    
    default ShortCharPair left(final short l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortCharPair left(final Short l) {
        return this.left((short)l);
    }
    
    default short firstShort() {
        return this.leftShort();
    }
    
    @Deprecated
    default Short first() {
        return this.firstShort();
    }
    
    default ShortCharPair first(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortCharPair first(final Short l) {
        return this.first((short)l);
    }
    
    default short keyShort() {
        return this.firstShort();
    }
    
    @Deprecated
    default Short key() {
        return this.keyShort();
    }
    
    default ShortCharPair key(final short l) {
        return this.left(l);
    }
    
    @Deprecated
    default ShortCharPair key(final Short l) {
        return this.key((short)l);
    }
    
    char rightChar();
    
    @Deprecated
    default Character right() {
        return this.rightChar();
    }
    
    default ShortCharPair right(final char r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ShortCharPair right(final Character l) {
        return this.right((char)l);
    }
    
    default char secondChar() {
        return this.rightChar();
    }
    
    @Deprecated
    default Character second() {
        return this.secondChar();
    }
    
    default ShortCharPair second(final char r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortCharPair second(final Character l) {
        return this.second((char)l);
    }
    
    default char valueChar() {
        return this.rightChar();
    }
    
    @Deprecated
    default Character value() {
        return this.valueChar();
    }
    
    default ShortCharPair value(final char r) {
        return this.right(r);
    }
    
    @Deprecated
    default ShortCharPair value(final Character l) {
        return this.value((char)l);
    }
    
    default ShortCharPair of(final short left, final char right) {
        return new ShortCharImmutablePair(left, right);
    }
    
    default Comparator<ShortCharPair> lexComparator() {
        return (x, y) -> {
            final int t = Short.compare(x.leftShort(), y.leftShort());
            if (t != 0) {
                return t;
            }
            else {
                return Character.compare(x.rightChar(), y.rightChar());
            }
        };
    }
}
