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