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

package it.unimi.dsi.fastutil.ints;

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

public interface IntCharPair extends Pair<Integer, Character>
{
    int leftInt();
    
    @Deprecated
    default Integer left() {
        return this.leftInt();
    }
    
    default IntCharPair left(final int l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default IntCharPair left(final Integer l) {
        return this.left((int)l);
    }
    
    default int firstInt() {
        return this.leftInt();
    }
    
    @Deprecated
    default Integer first() {
        return this.firstInt();
    }
    
    default IntCharPair first(final int l) {
        return this.left(l);
    }
    
    @Deprecated
    default IntCharPair first(final Integer l) {
        return this.first((int)l);
    }
    
    default int keyInt() {
        return this.firstInt();
    }
    
    @Deprecated
    default Integer key() {
        return this.keyInt();
    }
    
    default IntCharPair key(final int l) {
        return this.left(l);
    }
    
    @Deprecated
    default IntCharPair key(final Integer l) {
        return this.key((int)l);
    }
    
    char rightChar();
    
    @Deprecated
    default Character right() {
        return this.rightChar();
    }
    
    default IntCharPair right(final char r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default IntCharPair right(final Character l) {
        return this.right((char)l);
    }
    
    default char secondChar() {
        return this.rightChar();
    }
    
    @Deprecated
    default Character second() {
        return this.secondChar();
    }
    
    default IntCharPair second(final char r) {
        return this.right(r);
    }
    
    @Deprecated
    default IntCharPair second(final Character l) {
        return this.second((char)l);
    }
    
    default char valueChar() {
        return this.rightChar();
    }
    
    @Deprecated
    default Character value() {
        return this.valueChar();
    }
    
    default IntCharPair value(final char r) {
        return this.right(r);
    }
    
    @Deprecated
    default IntCharPair value(final Character l) {
        return this.value((char)l);
    }
    
    default IntCharPair of(final int left, final char right) {
        return new IntCharImmutablePair(left, right);
    }
    
    default Comparator<IntCharPair> lexComparator() {
        return (x, y) -> {
            final int t = Integer.compare(x.leftInt(), y.leftInt());
            if (t != 0) {
                return t;
            }
            else {
                return Character.compare(x.rightChar(), y.rightChar());
            }
        };
    }
}
