public interface IntIntSortedPair extends IntIntPair, SortedPair<java.lang.Integer>, java.io.Serializable
SortedPair
.Modifier and Type | Method and Description |
---|---|
default boolean |
contains(int 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 IntIntSortedPair |
of(int left,
int right)
Returns a new type-specific immutable
SortedPair with given left and right value. |
static IntIntSortedPair of(int left, int right)
SortedPair
with given left and right value.
Note that if left
and right
are in the wrong order, they will be exchanged.
of
in interface IntIntPair
of
in interface Pair<java.lang.Integer,java.lang.Integer>
of
in interface SortedPair<java.lang.Integer>
left
- the left value.right
- the right value.default boolean contains(int e)
e
- an element.e
.SortedPair.contains(Object)
@Deprecated default boolean contains(java.lang.Object o)
contains
in interface SortedPair<java.lang.Integer>
o
- an object, or null
-o
.