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

package it.unimi.dsi.fastutil.chars;

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

public interface CharDoublePair extends Pair<Character, Double>
{
    char leftChar();
    
    @Deprecated
    default Character left() {
        return this.leftChar();
    }
    
    default CharDoublePair left(final char l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default CharDoublePair left(final Character l) {
        return this.left((char)l);
    }
    
    default char firstChar() {
        return this.leftChar();
    }
    
    @Deprecated
    default Character first() {
        return this.firstChar();
    }
    
    default CharDoublePair first(final char l) {
        return this.left(l);
    }
    
    @Deprecated
    default CharDoublePair first(final Character l) {
        return this.first((char)l);
    }
    
    default char keyChar() {
        return this.firstChar();
    }
    
    @Deprecated
    default Character key() {
        return this.keyChar();
    }
    
    default CharDoublePair key(final char l) {
        return this.left(l);
    }
    
    @Deprecated
    default CharDoublePair key(final Character l) {
        return this.key((char)l);
    }
    
    double rightDouble();
    
    @Deprecated
    default Double right() {
        return this.rightDouble();
    }
    
    default CharDoublePair right(final double r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default CharDoublePair right(final Double l) {
        return this.right((double)l);
    }
    
    default double secondDouble() {
        return this.rightDouble();
    }
    
    @Deprecated
    default Double second() {
        return this.secondDouble();
    }
    
    default CharDoublePair second(final double r) {
        return this.right(r);
    }
    
    @Deprecated
    default CharDoublePair second(final Double l) {
        return this.second((double)l);
    }
    
    default double valueDouble() {
        return this.rightDouble();
    }
    
    @Deprecated
    default Double value() {
        return this.valueDouble();
    }
    
    default CharDoublePair value(final double r) {
        return this.right(r);
    }
    
    @Deprecated
    default CharDoublePair value(final Double l) {
        return this.value((double)l);
    }
    
    default CharDoublePair of(final char left, final double right) {
        return new CharDoubleImmutablePair(left, right);
    }
    
    default Comparator<CharDoublePair> lexComparator() {
        return (x, y) -> {
            final int t = Character.compare(x.leftChar(), y.leftChar());
            if (t != 0) {
                return t;
            }
            else {
                return Double.compare(x.rightDouble(), y.rightDouble());
            }
        };
    }
}
