public interface BooleanLongPair extends Pair<java.lang.Boolean,java.lang.Long>
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 BooleanLongPair |
first(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanLongPair |
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 BooleanLongPair |
key(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanLongPair |
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 BooleanLongPair |
left(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanLongPair |
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<BooleanLongPair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static BooleanLongPair |
of(boolean 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 BooleanLongPair |
right(long r)
Sets the right element of this pair (optional operation).
|
default BooleanLongPair |
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 BooleanLongPair |
second(long r)
Sets the right element of this pair (optional operation).
|
default BooleanLongPair |
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 BooleanLongPair |
value(long r)
Sets the right element of this pair (optional operation).
|
default BooleanLongPair |
value(java.lang.Long l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default long |
valueLong()
Returns the right element of this pair.
|
boolean leftBoolean()
@Deprecated default java.lang.Boolean left()
default BooleanLongPair left(boolean l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default BooleanLongPair left(java.lang.Boolean l)
default boolean firstBoolean()
left()
.@Deprecated default java.lang.Boolean first()
default BooleanLongPair first(boolean l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default BooleanLongPair first(java.lang.Boolean l)
default boolean keyBoolean()
left()
.@Deprecated default java.lang.Boolean key()
default BooleanLongPair key(boolean l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default BooleanLongPair key(java.lang.Boolean l)
Pair
long rightLong()
@Deprecated default java.lang.Long right()
default BooleanLongPair right(long r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default BooleanLongPair right(java.lang.Long l)
default long secondLong()
right()
.@Deprecated default java.lang.Long second()
default BooleanLongPair second(long r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default BooleanLongPair second(java.lang.Long l)
default long valueLong()
right()
.@Deprecated default java.lang.Long value()
default BooleanLongPair value(long r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default BooleanLongPair value(java.lang.Long l)
static BooleanLongPair of(boolean left, long right)
Pair
with given left and right value.static java.util.Comparator<BooleanLongPair> 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.Boolean,java.lang.Long>