public interface FloatReferencePair<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 FloatReferencePair<V> |
first(float l)
Sets the left element of this pair (optional operation).
|
default FloatReferencePair<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 FloatReferencePair<V> |
key(float l)
Sets the left element of this pair (optional operation).
|
default FloatReferencePair<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 FloatReferencePair<V> |
left(float l)
Sets the left element of this pair (optional operation).
|
default FloatReferencePair<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> FloatReferencePair<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 FloatReferencePair<V> left(float l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default FloatReferencePair<V> left(java.lang.Float l)
default float firstFloat()
left()
.@Deprecated default java.lang.Float first()
default FloatReferencePair<V> first(float l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default FloatReferencePair<V> first(java.lang.Float l)
default float keyFloat()
left()
.@Deprecated default java.lang.Float key()
default FloatReferencePair<V> key(float l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default FloatReferencePair<V> key(java.lang.Float l)
Pair
static <V> FloatReferencePair<V> of(float left, V right)
Pair
with given left and right value.