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

package it.unimi.dsi.fastutil.doubles;

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

public interface DoubleIntPair extends Pair<Double, Integer>
{
    double leftDouble();
    
    @Deprecated
    default Double left() {
        return this.leftDouble();
    }
    
    default DoubleIntPair left(final double l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default DoubleIntPair left(final Double l) {
        return this.left((double)l);
    }
    
    default double firstDouble() {
        return this.leftDouble();
    }
    
    @Deprecated
    default Double first() {
        return this.firstDouble();
    }
    
    default DoubleIntPair first(final double l) {
        return this.left(l);
    }
    
    @Deprecated
    default DoubleIntPair first(final Double l) {
        return this.first((double)l);
    }
    
    default double keyDouble() {
        return this.firstDouble();
    }
    
    @Deprecated
    default Double key() {
        return this.keyDouble();
    }
    
    default DoubleIntPair key(final double l) {
        return this.left(l);
    }
    
    @Deprecated
    default DoubleIntPair key(final Double l) {
        return this.key((double)l);
    }
    
    int rightInt();
    
    @Deprecated
    default Integer right() {
        return this.rightInt();
    }
    
    default DoubleIntPair right(final int r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default DoubleIntPair right(final Integer l) {
        return this.right((int)l);
    }
    
    default int secondInt() {
        return this.rightInt();
    }
    
    @Deprecated
    default Integer second() {
        return this.secondInt();
    }
    
    default DoubleIntPair second(final int r) {
        return this.right(r);
    }
    
    @Deprecated
    default DoubleIntPair second(final Integer l) {
        return this.second((int)l);
    }
    
    default int valueInt() {
        return this.rightInt();
    }
    
    @Deprecated
    default Integer value() {
        return this.valueInt();
    }
    
    default DoubleIntPair value(final int r) {
        return this.right(r);
    }
    
    @Deprecated
    default DoubleIntPair value(final Integer l) {
        return this.value((int)l);
    }
    
    default DoubleIntPair of(final double left, final int right) {
        return new DoubleIntImmutablePair(left, right);
    }
    
    default Comparator<DoubleIntPair> lexComparator() {
        return (x, y) -> {
            final int t = Double.compare(x.leftDouble(), y.leftDouble());
            if (t != 0) {
                return t;
            }
            else {
                return Integer.compare(x.rightInt(), y.rightInt());
            }
        };
    }
}
