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

package it.unimi.dsi.fastutil.shorts;

import java.io.Serializable;
import it.unimi.dsi.fastutil.SortedPair;

public interface ShortShortSortedPair extends ShortShortPair, SortedPair<Short>, Serializable
{
    default ShortShortSortedPair of(final short left, final short right) {
        return ShortShortImmutableSortedPair.of(left, right);
    }
    
    default boolean contains(final short e) {
        return e == this.leftShort() || e == this.rightShort();
    }
    
    @Deprecated
    default boolean contains(final Object o) {
        return o != null && this.contains((short)o);
    }
}
