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