public interface FloatObjectPair<V> extends Pair<java.lang.Float,V>
Pair
; provides some additional methods that use polymorphism to avoid (un)boxing.Modifier and Type | Method and Description |
---|---|
default java.lang.Float |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
default FloatObjectPair<V> |
first(float l)
Sets the left element of this pair (optional operation).
|
default FloatObjectPair<V> |
first(java.lang.Float l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default float |
firstFloat()
Returns the left element of this pair.
|
default java.lang.Float |
key()
Deprecated.
Please use the corresponding type-specific method instead.
|
default FloatObjectPair<V> |
key(float l)
Sets the left element of this pair (optional operation).
|
default FloatObjectPair<V> |
key(java.lang.Float l)
Deprecated.
|
default float |
keyFloat()
Returns the left element of this pair.
|
default java.lang.Float |
left()
Deprecated.
Please use the corresponding type-specific method instead.
|
default FloatObjectPair<V> |
left(float l)
Sets the left element of this pair (optional operation).
|
default FloatObjectPair<V> |
left(java.lang.Float l)
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
leftFloat()
Returns the left element of this pair.
|
static <V> java.util.Comparator<FloatObjectPair<V>> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static <V> FloatObjectPair<V> |
of(float left,
V right)
Returns a new type-specific immutable
Pair with given left and right value. |
float leftFloat()
@Deprecated default java.lang.Float left()
default FloatObjectPair<V> left(float l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default FloatObjectPair<V> left(java.lang.Float l)
default float firstFloat()
left()
.@Deprecated default java.lang.Float first()
default FloatObjectPair<V> first(float l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default FloatObjectPair<V> first(java.lang.Float l)
default float keyFloat()
left()
.@Deprecated default java.lang.Float key()
default FloatObjectPair<V> key(float l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default FloatObjectPair<V> key(java.lang.Float l)
Pair
static <V> FloatObjectPair<V> of(float left, V right)
Pair
with given left and right value.static <V> java.util.Comparator<FloatObjectPair<V>> lexComparator()
The comparator returned by this method implements lexicographical order. It compares first the left elements: if the result of the comparison is nonzero, it returns said result. Otherwise, this comparator returns the result of the comparison of the right elements.
lexComparator
in interface Pair<java.lang.Float,V>