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

package it.unimi.dsi.fastutil.ints;

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

public interface IntBooleanPair extends Pair<Integer, Boolean>
{
    int leftInt();
    
    @Deprecated
    default Integer left() {
        return this.leftInt();
    }
    
    default IntBooleanPair left(final int l) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default IntBooleanPair left(final Integer l) {
        return this.left((int)l);
    }
    
    default int firstInt() {
        return this.leftInt();
    }
    
    @Deprecated
    default Integer first() {
        return this.firstInt();
    }
    
    default IntBooleanPair first(final int l) {
        return this.left(l);
    }
    
    @Deprecated
    default IntBooleanPair first(final Integer l) {
        return this.first((int)l);
    }
    
    default int keyInt() {
        return this.firstInt();
    }
    
    @Deprecated
    default Integer key() {
        return this.keyInt();
    }
    
    default IntBooleanPair key(final int l) {
        return this.left(l);
    }
    
    @Deprecated
    default IntBooleanPair key(final Integer l) {
        return this.key((int)l);
    }
    
    boolean rightBoolean();
    
    @Deprecated
    default Boolean right() {
        return this.rightBoolean();
    }
    
    default IntBooleanPair right(final boolean r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default IntBooleanPair right(final Boolean l) {
        return this.right((boolean)l);
    }
    
    default boolean secondBoolean() {
        return this.rightBoolean();
    }
    
    @Deprecated
    default Boolean second() {
        return this.secondBoolean();
    }
    
    default IntBooleanPair second(final boolean r) {
        return this.right(r);
    }
    
    @Deprecated
    default IntBooleanPair second(final Boolean l) {
        return this.second((boolean)l);
    }
    
    default boolean valueBoolean() {
        return this.rightBoolean();
    }
    
    @Deprecated
    default Boolean value() {
        return this.valueBoolean();
    }
    
    default IntBooleanPair value(final boolean r) {
        return this.right(r);
    }
    
    @Deprecated
    default IntBooleanPair value(final Boolean l) {
        return this.value((boolean)l);
    }
    
    default IntBooleanPair of(final int left, final boolean right) {
        return new IntBooleanImmutablePair(left, right);
    }
    
    default Comparator<IntBooleanPair> lexComparator() {
        return (x, y) -> {
            final int t = Integer.compare(x.leftInt(), y.leftInt());
            if (t != 0) {
                return t;
            }
            else {
                return Boolean.compare(x.rightBoolean(), y.rightBoolean());
            }
        };
    }
}
