public interface DoubleReferencePair<V> extends Pair<java.lang.Double,V>
Pair
; provides some additional methods that use polymorphism to avoid (un)boxing.Modifier and Type | Method and Description |
---|---|
default java.lang.Double |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleReferencePair<V> |
first(double l)
Sets the left element of this pair (optional operation).
|
default DoubleReferencePair<V> |
first(java.lang.Double l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default double |
firstDouble()
Returns the left element of this pair.
|
default java.lang.Double |
key()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleReferencePair<V> |
key(double l)
Sets the left element of this pair (optional operation).
|
default DoubleReferencePair<V> |
key(java.lang.Double l)
Deprecated.
|
default double |
keyDouble()
Returns the left element of this pair.
|
default java.lang.Double |
left()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleReferencePair<V> |
left(double l)
Sets the left element of this pair (optional operation).
|
default DoubleReferencePair<V> |
left(java.lang.Double l)
Deprecated.
Please use the corresponding type-specific method instead.
|
double |
leftDouble()
Returns the left element of this pair.
|
static <V> DoubleReferencePair<V> |
of(double left,
V right)
Returns a new type-specific immutable
Pair with given left and right value. |
double leftDouble()
@Deprecated default java.lang.Double left()
default DoubleReferencePair<V> left(double l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default DoubleReferencePair<V> left(java.lang.Double l)
default double firstDouble()
left()
.@Deprecated default java.lang.Double first()
default DoubleReferencePair<V> first(double l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default DoubleReferencePair<V> first(java.lang.Double l)
default double keyDouble()
left()
.@Deprecated default java.lang.Double key()
default DoubleReferencePair<V> key(double l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default DoubleReferencePair<V> key(java.lang.Double l)
Pair
static <V> DoubleReferencePair<V> of(double left, V right)
Pair
with given left and right value.