public interface ReferenceFloatPair<K>
extends it.unimi.dsi.fastutil.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()
right in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Float>default ReferenceFloatPair<K> right(float r)
r - a new value for the right element.@Deprecated default ReferenceFloatPair<K> right(java.lang.Float l)
right in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Float>default float secondFloat()
@Deprecated default java.lang.Float second()
second in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Float>default ReferenceFloatPair<K> second(float r)
r - a new value for the right element.@Deprecated default ReferenceFloatPair<K> second(java.lang.Float l)
second in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Float>default float valueFloat()
@Deprecated default java.lang.Float value()
value in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Float>default ReferenceFloatPair<K> value(float r)
r - a new value for the right element.@Deprecated default ReferenceFloatPair<K> value(java.lang.Float l)
value in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Float>static <K> ReferenceFloatPair<K> of(K left, float right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Float>left - the left value.right - the right value.