public interface ByteShortPair
extends it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>
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 ByteShortPair |
first(byte l)
Sets the left element of this pair (optional operation).
|
default ByteShortPair |
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 ByteShortPair |
key(byte l)
Sets the left element of this pair (optional operation).
|
default ByteShortPair |
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 ByteShortPair |
left(byte l)
Sets the left element of this pair (optional operation).
|
default ByteShortPair |
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<ByteShortPair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static ByteShortPair |
of(byte left,
short right)
Returns a new type-specific immutable
Pair with given left and right value. |
default java.lang.Short |
right()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteShortPair |
right(short r)
Sets the right element of this pair (optional operation).
|
default ByteShortPair |
right(java.lang.Short l)
Deprecated.
Please use the corresponding type-specific method instead.
|
short |
rightShort()
Returns the right element of this pair.
|
default java.lang.Short |
second()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteShortPair |
second(short r)
Sets the right element of this pair (optional operation).
|
default ByteShortPair |
second(java.lang.Short l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default short |
secondShort()
Returns the right element of this pair.
|
default java.lang.Short |
value()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteShortPair |
value(short r)
Sets the right element of this pair (optional operation).
|
default ByteShortPair |
value(java.lang.Short l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default short |
valueShort()
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.Short>default ByteShortPair left(byte l)
l - a new value for the left element.@Deprecated default ByteShortPair left(java.lang.Byte l)
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default byte firstByte()
@Deprecated default java.lang.Byte first()
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default ByteShortPair first(byte l)
l - a new value for the left element.@Deprecated default ByteShortPair first(java.lang.Byte l)
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default byte keyByte()
@Deprecated default java.lang.Byte key()
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default ByteShortPair key(byte l)
l - a new value for the left element.@Deprecated default ByteShortPair key(java.lang.Byte l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>short rightShort()
@Deprecated default java.lang.Short right()
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default ByteShortPair right(short r)
r - a new value for the right element.@Deprecated default ByteShortPair right(java.lang.Short l)
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default short secondShort()
@Deprecated default java.lang.Short second()
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default ByteShortPair second(short r)
r - a new value for the right element.@Deprecated default ByteShortPair second(java.lang.Short l)
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default short valueShort()
@Deprecated default java.lang.Short value()
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>default ByteShortPair value(short r)
r - a new value for the right element.@Deprecated default ByteShortPair value(java.lang.Short l)
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>static ByteShortPair of(byte left, short right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<java.lang.Byte,java.lang.Short>left - the left value.right - the right value.static java.util.Comparator<ByteShortPair> 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.Short>