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

package it.unimi.dsi.fastutil.objects;

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

public interface ObjectLongPair<K> extends Pair<K, Long>
{
    long rightLong();
    
    @Deprecated
    default Long right() {
        return this.rightLong();
    }
    
    default ObjectLongPair<K> right(final long r) {
        throw new UnsupportedOperationException();
    }
    
    @Deprecated
    default ObjectLongPair<K> right(final Long l) {
        return this.right((long)l);
    }
    
    default long secondLong() {
        return this.rightLong();
    }
    
    @Deprecated
    default Long second() {
        return this.secondLong();
    }
    
    default ObjectLongPair<K> second(final long r) {
        return this.right(r);
    }
    
    @Deprecated
    default ObjectLongPair<K> second(final Long l) {
        return this.second((long)l);
    }
    
    default long valueLong() {
        return this.rightLong();
    }
    
    @Deprecated
    default Long value() {
        return this.valueLong();
    }
    
    default ObjectLongPair<K> value(final long r) {
        return this.right(r);
    }
    
    @Deprecated
    default ObjectLongPair<K> value(final Long l) {
        return this.value((long)l);
    }
    
    default <K> ObjectLongPair<K> of(final K left, final long right) {
        return new ObjectLongImmutablePair<K>(left, right);
    }
    
    default <K> Comparator<ObjectLongPair<K>> lexComparator() {
        return (x, y) -> {
            final int t = ((Comparable)x.left()).compareTo(y.left());
            if (t != 0) {
                return t;
            }
            else {
                return Long.compare(x.rightLong(), y.rightLong());
            }
        };
    }
}
