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