public interface ReferenceShortPair<K>
extends it.unimi.dsi.fastutil.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()
right in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Short>default ReferenceShortPair<K> right(short r)
r - a new value for the right element.@Deprecated default ReferenceShortPair<K> right(java.lang.Short l)
right in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Short>default short secondShort()
@Deprecated default java.lang.Short second()
second in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Short>default ReferenceShortPair<K> second(short r)
r - a new value for the right element.@Deprecated default ReferenceShortPair<K> second(java.lang.Short l)
second in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Short>default short valueShort()
@Deprecated default java.lang.Short value()
value in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Short>default ReferenceShortPair<K> value(short r)
r - a new value for the right element.@Deprecated default ReferenceShortPair<K> value(java.lang.Short l)
value in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Short>static <K> ReferenceShortPair<K> of(K left, short right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Short>left - the left value.right - the right value.