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