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

package it.unimi.dsi.fastutil.floats;

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

public interface FloatBytePair extends Pair<Float, Byte>
{
    float leftFloat();
    
    @Deprecated
    default Float left() {
        return this.leftFloat();
    }
    
    default FloatBytePair left(final float l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default FloatBytePair left(final Float l) {
        return this.left((float)l);
    }
    
    default float firstFloat() {
        return this.leftFloat();
    }
    
    @Deprecated
    default Float first() {
        return this.firstFloat();
    }
    
    default FloatBytePair first(final float l) {
        return this.left(l);
    }
    
    @Deprecated
    default FloatBytePair first(final Float l) {
        return this.first((float)l);
    }
    
    default float keyFloat() {
        return this.firstFloat();
    }
    
    @Deprecated
    default Float key() {
        return this.keyFloat();
    }
    
    default FloatBytePair key(final float l) {
        return this.left(l);
    }
    
    @Deprecated
    default FloatBytePair key(final Float l) {
        return this.key((float)l);
    }
    
    byte rightByte();
    
    @Deprecated
    default Byte right() {
        return this.rightByte();
    }
    
    default FloatBytePair right(final byte r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default FloatBytePair right(final Byte l) {
        return this.right((byte)l);
    }
    
    default byte secondByte() {
        return this.rightByte();
    }
    
    @Deprecated
    default Byte second() {
        return this.secondByte();
    }
    
    default FloatBytePair second(final byte r) {
        return this.right(r);
    }
    
    @Deprecated
    default FloatBytePair second(final Byte l) {
        return this.second((byte)l);
    }
    
    default byte valueByte() {
        return this.rightByte();
    }
    
    @Deprecated
    default Byte value() {
        return this.valueByte();
    }
    
    default FloatBytePair value(final byte r) {
        return this.right(r);
    }
    
    @Deprecated
    default FloatBytePair value(final Byte l) {
        return this.value((byte)l);
    }
    
    default FloatBytePair of(final float left, final byte right) {
        return new FloatByteImmutablePair(left, right);
    }
    
    default Comparator<FloatBytePair> lexComparator() {
        return (x, y) -> {
            final int t = Float.compare(x.leftFloat(), y.leftFloat());
            if (t != 0) {
                return t;
            }
            else {
                return Byte.compare(x.rightByte(), y.rightByte());
            }
        };
    }
}
