public interface ShortBytePair
extends it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>
Pair; provides some additional methods that use polymorphism to avoid (un)boxing.| Modifier and Type | Method and Description |
|---|---|
default java.lang.Short |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortBytePair |
first(short l)
Sets the left element of this pair (optional operation).
|
default ShortBytePair |
first(java.lang.Short l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default short |
firstShort()
Returns the left element of this pair.
|
default java.lang.Short |
key()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortBytePair |
key(short l)
Sets the left element of this pair (optional operation).
|
default ShortBytePair |
key(java.lang.Short l)
Deprecated.
|
default short |
keyShort()
Returns the left element of this pair.
|
default java.lang.Short |
left()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortBytePair |
left(short l)
Sets the left element of this pair (optional operation).
|
default ShortBytePair |
left(java.lang.Short l)
Deprecated.
Please use the corresponding type-specific method instead.
|
short |
leftShort()
Returns the left element of this pair.
|
static java.util.Comparator<ShortBytePair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static ShortBytePair |
of(short 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 ShortBytePair |
right(byte r)
Sets the right element of this pair (optional operation).
|
default ShortBytePair |
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 ShortBytePair |
second(byte r)
Sets the right element of this pair (optional operation).
|
default ShortBytePair |
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 ShortBytePair |
value(byte r)
Sets the right element of this pair (optional operation).
|
default ShortBytePair |
value(java.lang.Byte l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default byte |
valueByte()
Returns the right element of this pair.
|
short leftShort()
@Deprecated default java.lang.Short left()
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default ShortBytePair left(short l)
l - a new value for the left element.@Deprecated default ShortBytePair left(java.lang.Short l)
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default short firstShort()
@Deprecated default java.lang.Short first()
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default ShortBytePair first(short l)
l - a new value for the left element.@Deprecated default ShortBytePair first(java.lang.Short l)
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default short keyShort()
@Deprecated default java.lang.Short key()
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default ShortBytePair key(short l)
l - a new value for the left element.@Deprecated default ShortBytePair key(java.lang.Short l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>byte rightByte()
@Deprecated default java.lang.Byte right()
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default ShortBytePair right(byte r)
r - a new value for the right element.@Deprecated default ShortBytePair right(java.lang.Byte l)
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default byte secondByte()
@Deprecated default java.lang.Byte second()
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default ShortBytePair second(byte r)
r - a new value for the right element.@Deprecated default ShortBytePair second(java.lang.Byte l)
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default byte valueByte()
@Deprecated default java.lang.Byte value()
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>default ShortBytePair value(byte r)
r - a new value for the right element.@Deprecated default ShortBytePair value(java.lang.Byte l)
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>static ShortBytePair of(short left, byte right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<java.lang.Short,java.lang.Byte>left - the left value.right - the right value.static java.util.Comparator<ShortBytePair> 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.Short,java.lang.Byte>