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