public interface FloatFloatSortedPair extends FloatFloatPair, SortedPair<java.lang.Float>, java.io.Serializable
SortedPair
.Modifier and Type | Method and Description |
---|---|
default boolean |
contains(float 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 FloatFloatSortedPair |
of(float left,
float right)
Returns a new type-specific immutable
SortedPair with given left and right value. |
first, first, first, firstFloat, key, key, key, keyFloat, left, left, left, leftFloat, lexComparator, right, right, right, rightFloat, second, second, second, secondFloat, value, value, value, valueFloat
static FloatFloatSortedPair of(float left, float 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 FloatFloatPair
of
in interface Pair<java.lang.Float,java.lang.Float>
of
in interface SortedPair<java.lang.Float>
left
- the left value.right
- the right value.default boolean contains(float e)
e
- an element.e
.SortedPair.contains(Object)
@Deprecated default boolean contains(java.lang.Object o)
contains
in interface SortedPair<java.lang.Float>
o
- an object, or null
-o
.