public interface ByteReferencePair<V> extends Pair<java.lang.Byte,V>
Pair
; provides some additional methods that use polymorphism to avoid (un)boxing.Modifier and Type | Method and Description |
---|---|
default java.lang.Byte |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteReferencePair<V> |
first(byte l)
Sets the left element of this pair (optional operation).
|
default ByteReferencePair<V> |
first(java.lang.Byte l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default byte |
firstByte()
Returns the left element of this pair.
|
default java.lang.Byte |
key()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteReferencePair<V> |
key(byte l)
Sets the left element of this pair (optional operation).
|
default ByteReferencePair<V> |
key(java.lang.Byte l)
Deprecated.
|
default byte |
keyByte()
Returns the left element of this pair.
|
default java.lang.Byte |
left()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteReferencePair<V> |
left(byte l)
Sets the left element of this pair (optional operation).
|
default ByteReferencePair<V> |
left(java.lang.Byte l)
Deprecated.
Please use the corresponding type-specific method instead.
|
byte |
leftByte()
Returns the left element of this pair.
|
static <V> ByteReferencePair<V> |
of(byte left,
V right)
Returns a new type-specific immutable
Pair with given left and right value. |
byte leftByte()
@Deprecated default java.lang.Byte left()
default ByteReferencePair<V> left(byte l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default ByteReferencePair<V> left(java.lang.Byte l)
default byte firstByte()
left()
.@Deprecated default java.lang.Byte first()
default ByteReferencePair<V> first(byte l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default ByteReferencePair<V> first(java.lang.Byte l)
default byte keyByte()
left()
.@Deprecated default java.lang.Byte key()
default ByteReferencePair<V> key(byte l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default ByteReferencePair<V> key(java.lang.Byte l)
Pair
static <V> ByteReferencePair<V> of(byte left, V right)
Pair
with given left and right value.