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

package it.unimi.dsi.fastutil.doubles;

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

public interface DoubleShortPair extends Pair<Double, Short>
{
    double leftDouble();
    
    @Deprecated
    default Double left() {
        return this.leftDouble();
    }
    
    default DoubleShortPair left(final double l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default DoubleShortPair left(final Double l) {
        return this.left((double)l);
    }
    
    default double firstDouble() {
        return this.leftDouble();
    }
    
    @Deprecated
    default Double first() {
        return this.firstDouble();
    }
    
    default DoubleShortPair first(final double l) {
        return this.left(l);
    }
    
    @Deprecated
    default DoubleShortPair first(final Double l) {
        return this.first((double)l);
    }
    
    default double keyDouble() {
        return this.firstDouble();
    }
    
    @Deprecated
    default Double key() {
        return this.keyDouble();
    }
    
    default DoubleShortPair key(final double l) {
        return this.left(l);
    }
    
    @Deprecated
    default DoubleShortPair key(final Double l) {
        return this.key((double)l);
    }
    
    short rightShort();
    
    @Deprecated
    default Short right() {
        return this.rightShort();
    }
    
    default DoubleShortPair right(final short r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default DoubleShortPair right(final Short l) {
        return this.right((short)l);
    }
    
    default short secondShort() {
        return this.rightShort();
    }
    
    @Deprecated
    default Short second() {
        return this.secondShort();
    }
    
    default DoubleShortPair second(final short r) {
        return this.right(r);
    }
    
    @Deprecated
    default DoubleShortPair second(final Short l) {
        return this.second((short)l);
    }
    
    default short valueShort() {
        return this.rightShort();
    }
    
    @Deprecated
    default Short value() {
        return this.valueShort();
    }
    
    default DoubleShortPair value(final short r) {
        return this.right(r);
    }
    
    @Deprecated
    default DoubleShortPair value(final Short l) {
        return this.value((short)l);
    }
    
    default DoubleShortPair of(final double left, final short right) {
        return new DoubleShortImmutablePair(left, right);
    }
    
    default Comparator<DoubleShortPair> lexComparator() {
        return (x, y) -> {
            final int t = Double.compare(x.leftDouble(), y.leftDouble());
            if (t != 0) {
                return t;
            }
            else {
                return Short.compare(x.rightShort(), y.rightShort());
            }
        };
    }
}
