public interface ReferenceBytePair<K>
extends it.unimi.dsi.fastutil.Pair<K,java.lang.Byte>
Pair; provides some additional methods that use polymorphism to avoid (un)boxing.| Modifier and Type | Method and Description |
|---|---|
static <K> ReferenceBytePair<K> |
of(K left,
byte right)
Returns a new type-specific immutable
Pair with given left and right value. |
default java.lang.Byte |
right()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceBytePair<K> |
right(byte r)
Sets the right element of this pair (optional operation).
|
default ReferenceBytePair<K> |
right(java.lang.Byte l)
Deprecated.
Please use the corresponding type-specific method instead.
|
byte |
rightByte()
Returns the right element of this pair.
|
default java.lang.Byte |
second()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceBytePair<K> |
second(byte r)
Sets the right element of this pair (optional operation).
|
default ReferenceBytePair<K> |
second(java.lang.Byte l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default byte |
secondByte()
Returns the right element of this pair.
|
default java.lang.Byte |
value()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceBytePair<K> |
value(byte r)
Sets the right element of this pair (optional operation).
|
default ReferenceBytePair<K> |
value(java.lang.Byte l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default byte |
valueByte()
Returns the right element of this pair.
|
byte rightByte()
@Deprecated default java.lang.Byte right()
right in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Byte>default ReferenceBytePair<K> right(byte r)
r - a new value for the right element.@Deprecated default ReferenceBytePair<K> right(java.lang.Byte l)
right in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Byte>default byte secondByte()
@Deprecated default java.lang.Byte second()
second in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Byte>default ReferenceBytePair<K> second(byte r)
r - a new value for the right element.@Deprecated default ReferenceBytePair<K> second(java.lang.Byte l)
second in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Byte>default byte valueByte()
@Deprecated default java.lang.Byte value()
value in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Byte>default ReferenceBytePair<K> value(byte r)
r - a new value for the right element.@Deprecated default ReferenceBytePair<K> value(java.lang.Byte l)
value in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Byte>static <K> ReferenceBytePair<K> of(K left, byte right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Byte>left - the left value.right - the right value.