public interface ReferenceBytePair<K> extends 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()
default ReferenceBytePair<K> right(byte r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default ReferenceBytePair<K> right(java.lang.Byte l)
default byte secondByte()
right()
.@Deprecated default java.lang.Byte second()
default ReferenceBytePair<K> second(byte r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ReferenceBytePair<K> second(java.lang.Byte l)
default byte valueByte()
right()
.@Deprecated default java.lang.Byte value()
default ReferenceBytePair<K> value(byte r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ReferenceBytePair<K> value(java.lang.Byte l)
static <K> ReferenceBytePair<K> of(K left, byte right)
Pair
with given left and right value.