Package it.unimi.dsi.fastutil.ints
Interface IntIntSortedPair
- All Superinterfaces:
IntIntPair
,Pair<Integer,
,Integer> Serializable
,SortedPair<Integer>
- All Known Implementing Classes:
IntIntImmutableSortedPair
A type-specific immutable
SortedPair
.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
contains
(int e) Returns true if one of the two elements of this sorted pair is equal to a given element.default boolean
Deprecated.Please use the corresponding type-specific method instead.static IntIntSortedPair
of
(int left, int right) Returns a new type-specific immutableSortedPair
with given left and right value.
-
Method Details
-
of
Returns a new type-specific immutableSortedPair
with given left and right value.Note that if
left
andright
are in the wrong order, they will be exchanged.- Parameters:
left
- the left value.right
- the right value.- Implementation Specification:
- This factory method delegates to the factory method of the corresponding immutable implementation.
-
contains
default boolean contains(int 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.Returns true if one of the two elements of this sorted pair is equal to a given object.- Specified by:
contains
in interfaceSortedPair<Integer>
- Parameters:
o
- an object, ornull
-- Returns:
- true if one of the two elements of this sorted pair is equal to
o
.
-