Package it.unimi.dsi.fastutil.longs
Interface LongLongSortedPair
- All Superinterfaces:
LongLongPair,it.unimi.dsi.fastutil.Pair<Long,,Long> Serializable,it.unimi.dsi.fastutil.SortedPair<Long>
- All Known Implementing Classes:
LongLongImmutableSortedPair
public interface LongLongSortedPair
extends LongLongPair, it.unimi.dsi.fastutil.SortedPair<Long>, Serializable
A type-specific immutable
SortedPair.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontains(long e) Returns true if one of the two elements of this sorted pair is equal to a given element.default booleanDeprecated.Please use the corresponding type-specific method instead.static LongLongSortedPairof(long left, long right) Returns a new type-specific immutableSortedPairwith given left and right value.
-
Method Details
-
of
Returns a new type-specific immutableSortedPairwith given left and right value.Note that if
leftandrightare in the wrong order, they will be exchanged.- Parameters:
left- the left value.right- the right value.
-
contains
default boolean contains(long e) Returns true if one of the two elements of this sorted pair is equal to a given element.- Parameters:
e- an element.- Returns:
- true if one of the two elements of this sorted pair is equal to
e. - See Also:
-
contains
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.SortedPair<Long>
-