public interface ShortBooleanPair extends Pair<java.lang.Short,java.lang.Boolean>
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 ShortBooleanPair |
first(short l)
Sets the left element of this pair (optional operation).
|
default ShortBooleanPair |
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 ShortBooleanPair |
key(short l)
Sets the left element of this pair (optional operation).
|
default ShortBooleanPair |
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 ShortBooleanPair |
left(short l)
Sets the left element of this pair (optional operation).
|
default ShortBooleanPair |
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<ShortBooleanPair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static ShortBooleanPair |
of(short left,
boolean right)
Returns a new type-specific immutable
Pair with given left and right value. |
default java.lang.Boolean |
right()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortBooleanPair |
right(boolean r)
Sets the right element of this pair (optional operation).
|
default ShortBooleanPair |
right(java.lang.Boolean l)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
rightBoolean()
Returns the right element of this pair.
|
default java.lang.Boolean |
second()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortBooleanPair |
second(boolean r)
Sets the right element of this pair (optional operation).
|
default ShortBooleanPair |
second(java.lang.Boolean l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default boolean |
secondBoolean()
Returns the right element of this pair.
|
default java.lang.Boolean |
value()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ShortBooleanPair |
value(boolean r)
Sets the right element of this pair (optional operation).
|
default ShortBooleanPair |
value(java.lang.Boolean l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default boolean |
valueBoolean()
Returns the right element of this pair.
|
short leftShort()
@Deprecated default java.lang.Short left()
default ShortBooleanPair left(short l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default ShortBooleanPair left(java.lang.Short l)
default short firstShort()
left()
.@Deprecated default java.lang.Short first()
default ShortBooleanPair first(short l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default ShortBooleanPair first(java.lang.Short l)
default short keyShort()
left()
.@Deprecated default java.lang.Short key()
default ShortBooleanPair key(short l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default ShortBooleanPair key(java.lang.Short l)
Pair
boolean rightBoolean()
@Deprecated default java.lang.Boolean right()
default ShortBooleanPair right(boolean r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default ShortBooleanPair right(java.lang.Boolean l)
default boolean secondBoolean()
right()
.@Deprecated default java.lang.Boolean second()
default ShortBooleanPair second(boolean r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ShortBooleanPair second(java.lang.Boolean l)
default boolean valueBoolean()
right()
.@Deprecated default java.lang.Boolean value()
default ShortBooleanPair value(boolean r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ShortBooleanPair value(java.lang.Boolean l)
static ShortBooleanPair of(short left, boolean right)
Pair
with given left and right value.static java.util.Comparator<ShortBooleanPair> 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.Short,java.lang.Boolean>