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

package it.unimi.dsi.fastutil.bytes;

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

public interface ByteFloatPair extends Pair<Byte, Float>
{
    byte leftByte();
    
    @Deprecated
    default Byte left() {
        return this.leftByte();
    }
    
    default ByteFloatPair left(final byte l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ByteFloatPair left(final Byte l) {
        return this.left((byte)l);
    }
    
    default byte firstByte() {
        return this.leftByte();
    }
    
    @Deprecated
    default Byte first() {
        return this.firstByte();
    }
    
    default ByteFloatPair first(final byte l) {
        return this.left(l);
    }
    
    @Deprecated
    default ByteFloatPair first(final Byte l) {
        return this.first((byte)l);
    }
    
    default byte keyByte() {
        return this.firstByte();
    }
    
    @Deprecated
    default Byte key() {
        return this.keyByte();
    }
    
    default ByteFloatPair key(final byte l) {
        return this.left(l);
    }
    
    @Deprecated
    default ByteFloatPair key(final Byte l) {
        return this.key((byte)l);
    }
    
    float rightFloat();
    
    @Deprecated
    default Float right() {
        return this.rightFloat();
    }
    
    default ByteFloatPair right(final float r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ByteFloatPair right(final Float l) {
        return this.right((float)l);
    }
    
    default float secondFloat() {
        return this.rightFloat();
    }
    
    @Deprecated
    default Float second() {
        return this.secondFloat();
    }
    
    default ByteFloatPair second(final float r) {
        return this.right(r);
    }
    
    @Deprecated
    default ByteFloatPair second(final Float l) {
        return this.second((float)l);
    }
    
    default float valueFloat() {
        return this.rightFloat();
    }
    
    @Deprecated
    default Float value() {
        return this.valueFloat();
    }
    
    default ByteFloatPair value(final float r) {
        return this.right(r);
    }
    
    @Deprecated
    default ByteFloatPair value(final Float l) {
        return this.value((float)l);
    }
    
    default ByteFloatPair of(final byte left, final float right) {
        return new ByteFloatImmutablePair(left, right);
    }
    
    default Comparator<ByteFloatPair> lexComparator() {
        return (x, y) -> {
            final int t = Byte.compare(x.leftByte(), y.leftByte());
            if (t != 0) {
                return t;
            }
            else {
                return Float.compare(x.rightFloat(), y.rightFloat());
            }
        };
    }
}
