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

package it.unimi.dsi.fastutil.bytes;

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

public interface ByteIntPair extends Pair<Byte, Integer>
{
    byte leftByte();
    
    @Deprecated
    default Byte left() {
        return this.leftByte();
    }
    
    default ByteIntPair left(final byte l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ByteIntPair left(final Byte l) {
        return this.left((byte)l);
    }
    
    default byte firstByte() {
        return this.leftByte();
    }
    
    @Deprecated
    default Byte first() {
        return this.firstByte();
    }
    
    default ByteIntPair first(final byte l) {
        return this.left(l);
    }
    
    @Deprecated
    default ByteIntPair first(final Byte l) {
        return this.first((byte)l);
    }
    
    default byte keyByte() {
        return this.firstByte();
    }
    
    @Deprecated
    default Byte key() {
        return this.keyByte();
    }
    
    default ByteIntPair key(final byte l) {
        return this.left(l);
    }
    
    @Deprecated
    default ByteIntPair key(final Byte l) {
        return this.key((byte)l);
    }
    
    int rightInt();
    
    @Deprecated
    default Integer right() {
        return this.rightInt();
    }
    
    default ByteIntPair right(final int r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ByteIntPair right(final Integer l) {
        return this.right((int)l);
    }
    
    default int secondInt() {
        return this.rightInt();
    }
    
    @Deprecated
    default Integer second() {
        return this.secondInt();
    }
    
    default ByteIntPair second(final int r) {
        return this.right(r);
    }
    
    @Deprecated
    default ByteIntPair second(final Integer l) {
        return this.second((int)l);
    }
    
    default int valueInt() {
        return this.rightInt();
    }
    
    @Deprecated
    default Integer value() {
        return this.valueInt();
    }
    
    default ByteIntPair value(final int r) {
        return this.right(r);
    }
    
    @Deprecated
    default ByteIntPair value(final Integer l) {
        return this.value((int)l);
    }
    
    default ByteIntPair of(final byte left, final int right) {
        return new ByteIntImmutablePair(left, right);
    }
    
    default Comparator<ByteIntPair> lexComparator() {
        return (x, y) -> {
            final int t = Byte.compare(x.leftByte(), y.leftByte());
            if (t != 0) {
                return t;
            }
            else {
                return Integer.compare(x.rightInt(), y.rightInt());
            }
        };
    }
}
