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