public interface ByteLongPair
extends it.unimi.dsi.fastutil.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()
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default ByteLongPair left(byte l)
l - a new value for the left element.@Deprecated default ByteLongPair left(java.lang.Byte l)
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default byte firstByte()
@Deprecated default java.lang.Byte first()
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default ByteLongPair first(byte l)
l - a new value for the left element.@Deprecated default ByteLongPair first(java.lang.Byte l)
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default byte keyByte()
@Deprecated default java.lang.Byte key()
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default ByteLongPair key(byte l)
l - a new value for the left element.@Deprecated default ByteLongPair key(java.lang.Byte l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>long rightLong()
@Deprecated default java.lang.Long right()
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default ByteLongPair right(long r)
r - a new value for the right element.@Deprecated default ByteLongPair right(java.lang.Long l)
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default long secondLong()
@Deprecated default java.lang.Long second()
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default ByteLongPair second(long r)
r - a new value for the right element.@Deprecated default ByteLongPair second(java.lang.Long l)
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default long valueLong()
@Deprecated default java.lang.Long value()
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>default ByteLongPair value(long r)
r - a new value for the right element.@Deprecated default ByteLongPair value(java.lang.Long l)
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>static ByteLongPair of(byte left, long right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>left - the left value.right - the 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 it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Long>