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

package it.unimi.dsi.fastutil.floats;

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

public interface FloatIntPair extends Pair<Float, Integer>
{
    float leftFloat();
    
    @Deprecated
    default Float left() {
        return this.leftFloat();
    }
    
    default FloatIntPair left(final float l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default FloatIntPair left(final Float l) {
        return this.left((float)l);
    }
    
    default float firstFloat() {
        return this.leftFloat();
    }
    
    @Deprecated
    default Float first() {
        return this.firstFloat();
    }
    
    default FloatIntPair first(final float l) {
        return this.left(l);
    }
    
    @Deprecated
    default FloatIntPair first(final Float l) {
        return this.first((float)l);
    }
    
    default float keyFloat() {
        return this.firstFloat();
    }
    
    @Deprecated
    default Float key() {
        return this.keyFloat();
    }
    
    default FloatIntPair key(final float l) {
        return this.left(l);
    }
    
    @Deprecated
    default FloatIntPair key(final Float l) {
        return this.key((float)l);
    }
    
    int rightInt();
    
    @Deprecated
    default Integer right() {
        return this.rightInt();
    }
    
    default FloatIntPair right(final int r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default FloatIntPair right(final Integer l) {
        return this.right((int)l);
    }
    
    default int secondInt() {
        return this.rightInt();
    }
    
    @Deprecated
    default Integer second() {
        return this.secondInt();
    }
    
    default FloatIntPair second(final int r) {
        return this.right(r);
    }
    
    @Deprecated
    default FloatIntPair second(final Integer l) {
        return this.second((int)l);
    }
    
    default int valueInt() {
        return this.rightInt();
    }
    
    @Deprecated
    default Integer value() {
        return this.valueInt();
    }
    
    default FloatIntPair value(final int r) {
        return this.right(r);
    }
    
    @Deprecated
    default FloatIntPair value(final Integer l) {
        return this.value((int)l);
    }
    
    default FloatIntPair of(final float left, final int right) {
        return new FloatIntImmutablePair(left, right);
    }
    
    default Comparator<FloatIntPair> lexComparator() {
        return (x, y) -> {
            final int t = Float.compare(x.leftFloat(), y.leftFloat());
            if (t != 0) {
                return t;
            }
            else {
                return Integer.compare(x.rightInt(), y.rightInt());
            }
        };
    }
}
