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

package it.unimi.dsi.fastutil.objects;

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

public interface ObjectBooleanPair<K> extends Pair<K, Boolean>
{
    boolean rightBoolean();
    
    @Deprecated
    default Boolean right() {
        return this.rightBoolean();
    }
    
    default ObjectBooleanPair<K> right(final boolean r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ObjectBooleanPair<K> right(final Boolean l) {
        return this.right((boolean)l);
    }
    
    default boolean secondBoolean() {
        return this.rightBoolean();
    }
    
    @Deprecated
    default Boolean second() {
        return this.secondBoolean();
    }
    
    default ObjectBooleanPair<K> second(final boolean r) {
        return this.right(r);
    }
    
    @Deprecated
    default ObjectBooleanPair<K> second(final Boolean l) {
        return this.second((boolean)l);
    }
    
    default boolean valueBoolean() {
        return this.rightBoolean();
    }
    
    @Deprecated
    default Boolean value() {
        return this.valueBoolean();
    }
    
    default ObjectBooleanPair<K> value(final boolean r) {
        return this.right(r);
    }
    
    @Deprecated
    default ObjectBooleanPair<K> value(final Boolean l) {
        return this.value((boolean)l);
    }
    
    default <K> ObjectBooleanPair<K> of(final K left, final boolean right) {
        return new ObjectBooleanImmutablePair<K>(left, right);
    }
    
    default <K> Comparator<ObjectBooleanPair<K>> lexComparator() {
        return (x, y) -> {
            final int t = ((Comparable)x.left()).compareTo(y.left());
            if (t != 0) {
                return t;
            }
            else {
                return Boolean.compare(x.rightBoolean(), y.rightBoolean());
            }
        };
    }
}
