public interface BooleanBytePair extends Pair<java.lang.Boolean,java.lang.Byte>
Pair
; provides some additional methods that use polymorphism to avoid (un)boxing.Modifier and Type | Method and Description |
---|---|
default java.lang.Boolean |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
default BooleanBytePair |
first(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanBytePair |
first(java.lang.Boolean l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default boolean |
firstBoolean()
Returns the left element of this pair.
|
default java.lang.Boolean |
key()
Deprecated.
Please use the corresponding type-specific method instead.
|
default BooleanBytePair |
key(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanBytePair |
key(java.lang.Boolean l)
Deprecated.
|
default boolean |
keyBoolean()
Returns the left element of this pair.
|
default java.lang.Boolean |
left()
Deprecated.
Please use the corresponding type-specific method instead.
|
default BooleanBytePair |
left(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanBytePair |
left(java.lang.Boolean l)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
leftBoolean()
Returns the left element of this pair.
|
static java.util.Comparator<BooleanBytePair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static BooleanBytePair |
of(boolean 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 BooleanBytePair |
right(byte r)
Sets the right element of this pair (optional operation).
|
default BooleanBytePair |
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 BooleanBytePair |
second(byte r)
Sets the right element of this pair (optional operation).
|
default BooleanBytePair |
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 BooleanBytePair |
value(byte r)
Sets the right element of this pair (optional operation).
|
default BooleanBytePair |
value(java.lang.Byte l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default byte |
valueByte()
Returns the right element of this pair.
|
boolean leftBoolean()
@Deprecated default java.lang.Boolean left()
default BooleanBytePair left(boolean l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default BooleanBytePair left(java.lang.Boolean l)
default boolean firstBoolean()
left()
.@Deprecated default java.lang.Boolean first()
default BooleanBytePair first(boolean l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default BooleanBytePair first(java.lang.Boolean l)
default boolean keyBoolean()
left()
.@Deprecated default java.lang.Boolean key()
default BooleanBytePair key(boolean l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default BooleanBytePair key(java.lang.Boolean l)
Pair
byte rightByte()
@Deprecated default java.lang.Byte right()
default BooleanBytePair right(byte r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default BooleanBytePair right(java.lang.Byte l)
default byte secondByte()
right()
.@Deprecated default java.lang.Byte second()
default BooleanBytePair second(byte r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default BooleanBytePair second(java.lang.Byte l)
default byte valueByte()
right()
.@Deprecated default java.lang.Byte value()
default BooleanBytePair value(byte r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default BooleanBytePair value(java.lang.Byte l)
static BooleanBytePair of(boolean left, byte right)
Pair
with given left and right value.static java.util.Comparator<BooleanBytePair> lexComparator()
The comparator returned by this method implements lexicographical order. It compares first the left elements: if the result of the comparison is nonzero, it returns said result. Otherwise, this comparator returns the result of the comparison of the right elements.
lexComparator
in interface Pair<java.lang.Boolean,java.lang.Byte>