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

package it.unimi.dsi.fastutil.bytes;

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

public interface ByteCharPair extends Pair<Byte, Character>
{
    byte leftByte();
    
    @Deprecated
    default Byte left() {
        return this.leftByte();
    }
    
    default ByteCharPair left(final byte l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ByteCharPair left(final Byte l) {
        return this.left((byte)l);
    }
    
    default byte firstByte() {
        return this.leftByte();
    }
    
    @Deprecated
    default Byte first() {
        return this.firstByte();
    }
    
    default ByteCharPair first(final byte l) {
        return this.left(l);
    }
    
    @Deprecated
    default ByteCharPair first(final Byte l) {
        return this.first((byte)l);
    }
    
    default byte keyByte() {
        return this.firstByte();
    }
    
    @Deprecated
    default Byte key() {
        return this.keyByte();
    }
    
    default ByteCharPair key(final byte l) {
        return this.left(l);
    }
    
    @Deprecated
    default ByteCharPair key(final Byte l) {
        return this.key((byte)l);
    }
    
    char rightChar();
    
    @Deprecated
    default Character right() {
        return this.rightChar();
    }
    
    default ByteCharPair right(final char r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ByteCharPair right(final Character l) {
        return this.right((char)l);
    }
    
    default char secondChar() {
        return this.rightChar();
    }
    
    @Deprecated
    default Character second() {
        return this.secondChar();
    }
    
    default ByteCharPair second(final char r) {
        return this.right(r);
    }
    
    @Deprecated
    default ByteCharPair second(final Character l) {
        return this.second((char)l);
    }
    
    default char valueChar() {
        return this.rightChar();
    }
    
    @Deprecated
    default Character value() {
        return this.valueChar();
    }
    
    default ByteCharPair value(final char r) {
        return this.right(r);
    }
    
    @Deprecated
    default ByteCharPair value(final Character l) {
        return this.value((char)l);
    }
    
    default ByteCharPair of(final byte left, final char right) {
        return new ByteCharImmutablePair(left, right);
    }
    
    default Comparator<ByteCharPair> lexComparator() {
        return (x, y) -> {
            final int t = Byte.compare(x.leftByte(), y.leftByte());
            if (t != 0) {
                return t;
            }
            else {
                return Character.compare(x.rightChar(), y.rightChar());
            }
        };
    }
}
