public interface FloatReferencePair<V>
extends it.unimi.dsi.fastutil.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()
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Float,V>default FloatReferencePair<V> left(float l)
l - a new value for the left element.@Deprecated default FloatReferencePair<V> left(java.lang.Float l)
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Float,V>default float firstFloat()
@Deprecated default java.lang.Float first()
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Float,V>default FloatReferencePair<V> first(float l)
l - a new value for the left element.@Deprecated default FloatReferencePair<V> first(java.lang.Float l)
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Float,V>default float keyFloat()
@Deprecated default java.lang.Float key()
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Float,V>default FloatReferencePair<V> key(float l)
l - a new value for the left element.@Deprecated default FloatReferencePair<V> key(java.lang.Float l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Float,V>static <V> FloatReferencePair<V> of(float left, V right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<java.lang.Float,V>left - the left value.right - the right value.