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

package it.unimi.dsi.fastutil.ints;

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

public interface IntLongPair extends Pair<Integer, Long>
{
    int leftInt();
    
    @Deprecated
    default Integer left() {
        return this.leftInt();
    }
    
    default IntLongPair left(final int l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default IntLongPair left(final Integer l) {
        return this.left((int)l);
    }
    
    default int firstInt() {
        return this.leftInt();
    }
    
    @Deprecated
    default Integer first() {
        return this.firstInt();
    }
    
    default IntLongPair first(final int l) {
        return this.left(l);
    }
    
    @Deprecated
    default IntLongPair first(final Integer l) {
        return this.first((int)l);
    }
    
    default int keyInt() {
        return this.firstInt();
    }
    
    @Deprecated
    default Integer key() {
        return this.keyInt();
    }
    
    default IntLongPair key(final int l) {
        return this.left(l);
    }
    
    @Deprecated
    default IntLongPair key(final Integer l) {
        return this.key((int)l);
    }
    
    long rightLong();
    
    @Deprecated
    default Long right() {
        return this.rightLong();
    }
    
    default IntLongPair right(final long r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default IntLongPair right(final Long l) {
        return this.right((long)l);
    }
    
    default long secondLong() {
        return this.rightLong();
    }
    
    @Deprecated
    default Long second() {
        return this.secondLong();
    }
    
    default IntLongPair second(final long r) {
        return this.right(r);
    }
    
    @Deprecated
    default IntLongPair second(final Long l) {
        return this.second((long)l);
    }
    
    default long valueLong() {
        return this.rightLong();
    }
    
    @Deprecated
    default Long value() {
        return this.valueLong();
    }
    
    default IntLongPair value(final long r) {
        return this.right(r);
    }
    
    @Deprecated
    default IntLongPair value(final Long l) {
        return this.value((long)l);
    }
    
    default IntLongPair of(final int left, final long right) {
        return new IntLongImmutablePair(left, right);
    }
    
    default Comparator<IntLongPair> lexComparator() {
        return (x, y) -> {
            final int t = Integer.compare(x.leftInt(), y.leftInt());
            if (t != 0) {
                return t;
            }
            else {
                return Long.compare(x.rightLong(), y.rightLong());
            }
        };
    }
}
