public interface ReferenceFloatPair<K> extends Pair<K,java.lang.Float>
Pair
; provides some additional methods that use polymorphism to avoid (un)boxing.Modifier and Type | Method and Description |
---|---|
static <K> ReferenceFloatPair<K> |
of(K left,
float right)
Returns a new type-specific immutable
Pair with given left and right value. |
default java.lang.Float |
right()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceFloatPair<K> |
right(float r)
Sets the right element of this pair (optional operation).
|
default ReferenceFloatPair<K> |
right(java.lang.Float l)
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
rightFloat()
Returns the right element of this pair.
|
default java.lang.Float |
second()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceFloatPair<K> |
second(float r)
Sets the right element of this pair (optional operation).
|
default ReferenceFloatPair<K> |
second(java.lang.Float l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default float |
secondFloat()
Returns the right element of this pair.
|
default java.lang.Float |
value()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceFloatPair<K> |
value(float r)
Sets the right element of this pair (optional operation).
|
default ReferenceFloatPair<K> |
value(java.lang.Float l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default float |
valueFloat()
Returns the right element of this pair.
|
float rightFloat()
@Deprecated default java.lang.Float right()
default ReferenceFloatPair<K> right(float r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default ReferenceFloatPair<K> right(java.lang.Float l)
default float secondFloat()
right()
.@Deprecated default java.lang.Float second()
default ReferenceFloatPair<K> second(float r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ReferenceFloatPair<K> second(java.lang.Float l)
default float valueFloat()
right()
.@Deprecated default java.lang.Float value()
default ReferenceFloatPair<K> value(float r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ReferenceFloatPair<K> value(java.lang.Float l)
static <K> ReferenceFloatPair<K> of(K left, float right)
Pair
with given left and right value.