Package it.unimi.dsi.fastutil.longs
Interface LongLongSortedPair
-
- All Superinterfaces:
LongLongPair
,Pair<java.lang.Long,java.lang.Long>
,java.io.Serializable
,SortedPair<java.lang.Long>
- All Known Implementing Classes:
LongLongImmutableSortedPair
public interface LongLongSortedPair extends LongLongPair, SortedPair<java.lang.Long>, java.io.Serializable
A type-specific immutableSortedPair
.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default boolean
contains(long e)
Returns true if one of the two elements of this sorted pair is equal to a given element.default boolean
contains(java.lang.Object o)
Deprecated.Please use the corresponding type-specific method instead.static LongLongSortedPair
of(long left, long right)
Returns a new type-specific immutableSortedPair
with given left and right value.
-
-
-
Method Detail
-
of
static LongLongSortedPair of(long left, long right)
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(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:
SortedPair.contains(Object)
-
contains
@Deprecated default boolean contains(java.lang.Object o)
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<java.lang.Long>
- Parameters:
o
- an object, ornull
-- Returns:
- true if one of the two elements of this sorted pair is equal to
o
.
-
-