public interface ByteIntPair extends Pair<java.lang.Byte,java.lang.Integer>
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 ByteIntPair |
first(byte l)
Sets the left element of this pair (optional operation).
|
default ByteIntPair |
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 ByteIntPair |
key(byte l)
Sets the left element of this pair (optional operation).
|
default ByteIntPair |
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 ByteIntPair |
left(byte l)
Sets the left element of this pair (optional operation).
|
default ByteIntPair |
left(java.lang.Byte l)
Deprecated.
Please use the corresponding type-specific method instead.
|
byte |
leftByte()
Returns the left element of this pair.
|
static java.util.Comparator<ByteIntPair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static ByteIntPair |
of(byte left,
int right)
Returns a new type-specific immutable
Pair with given left and right value. |
default java.lang.Integer |
right()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteIntPair |
right(int r)
Sets the right element of this pair (optional operation).
|
default ByteIntPair |
right(java.lang.Integer l)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
rightInt()
Returns the right element of this pair.
|
default java.lang.Integer |
second()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteIntPair |
second(int r)
Sets the right element of this pair (optional operation).
|
default ByteIntPair |
second(java.lang.Integer l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default int |
secondInt()
Returns the right element of this pair.
|
default java.lang.Integer |
value()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteIntPair |
value(int r)
Sets the right element of this pair (optional operation).
|
default ByteIntPair |
value(java.lang.Integer l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default int |
valueInt()
Returns the right element of this pair.
|
byte leftByte()
@Deprecated default java.lang.Byte left()
default ByteIntPair left(byte l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default ByteIntPair left(java.lang.Byte l)
default byte firstByte()
left()
.@Deprecated default java.lang.Byte first()
default ByteIntPair first(byte l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default ByteIntPair first(java.lang.Byte l)
default byte keyByte()
left()
.@Deprecated default java.lang.Byte key()
default ByteIntPair key(byte l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default ByteIntPair key(java.lang.Byte l)
Pair
int rightInt()
@Deprecated default java.lang.Integer right()
default ByteIntPair right(int r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default ByteIntPair right(java.lang.Integer l)
default int secondInt()
right()
.@Deprecated default java.lang.Integer second()
default ByteIntPair second(int r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ByteIntPair second(java.lang.Integer l)
default int valueInt()
right()
.@Deprecated default java.lang.Integer value()
default ByteIntPair value(int r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ByteIntPair value(java.lang.Integer l)
static ByteIntPair of(byte left, int right)
Pair
with given left and right value.static java.util.Comparator<ByteIntPair> 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.Byte,java.lang.Integer>