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

package it.unimi.dsi.fastutil.ints;

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

public interface IntBytePair extends Pair<Integer, Byte>
{
    int leftInt();
    
    @Deprecated
    default Integer left() {
        return this.leftInt();
    }
    
    default IntBytePair left(final int l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default IntBytePair left(final Integer l) {
        return this.left((int)l);
    }
    
    default int firstInt() {
        return this.leftInt();
    }
    
    @Deprecated
    default Integer first() {
        return this.firstInt();
    }
    
    default IntBytePair first(final int l) {
        return this.left(l);
    }
    
    @Deprecated
    default IntBytePair first(final Integer l) {
        return this.first((int)l);
    }
    
    default int keyInt() {
        return this.firstInt();
    }
    
    @Deprecated
    default Integer key() {
        return this.keyInt();
    }
    
    default IntBytePair key(final int l) {
        return this.left(l);
    }
    
    @Deprecated
    default IntBytePair key(final Integer l) {
        return this.key((int)l);
    }
    
    byte rightByte();
    
    @Deprecated
    default Byte right() {
        return this.rightByte();
    }
    
    default IntBytePair right(final byte r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default IntBytePair right(final Byte l) {
        return this.right((byte)l);
    }
    
    default byte secondByte() {
        return this.rightByte();
    }
    
    @Deprecated
    default Byte second() {
        return this.secondByte();
    }
    
    default IntBytePair second(final byte r) {
        return this.right(r);
    }
    
    @Deprecated
    default IntBytePair second(final Byte l) {
        return this.second((byte)l);
    }
    
    default byte valueByte() {
        return this.rightByte();
    }
    
    @Deprecated
    default Byte value() {
        return this.valueByte();
    }
    
    default IntBytePair value(final byte r) {
        return this.right(r);
    }
    
    @Deprecated
    default IntBytePair value(final Byte l) {
        return this.value((byte)l);
    }
    
    default IntBytePair of(final int left, final byte right) {
        return new IntByteImmutablePair(left, right);
    }
    
    default Comparator<IntBytePair> lexComparator() {
        return (x, y) -> {
            final int t = Integer.compare(x.leftInt(), y.leftInt());
            if (t != 0) {
                return t;
            }
            else {
                return Byte.compare(x.rightByte(), y.rightByte());
            }
        };
    }
}
