public class FloatFloatImmutableSortedPair extends FloatFloatImmutablePair implements FloatFloatSortedPair, java.io.Serializable
SortedPair
; provides some additional methods that use polymorphism to avoid (un)boxing.Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
static FloatFloatImmutableSortedPair |
of(float left,
float right)
Returns a new type-specific immutable
SortedPair with given left and right value. |
java.lang.String |
toString()
Returns a string representation of this sorted pair in the form {l,r}.
|
hashCode, leftFloat, rightFloat
contains, contains
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
public static FloatFloatImmutableSortedPair 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 FloatFloatSortedPair
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.public boolean equals(java.lang.Object other)
equals
in class FloatFloatImmutablePair
public java.lang.String toString()
toString
in class FloatFloatImmutablePair