public interface ReferenceBooleanPair<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> ReferenceBooleanPair<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 ReferenceBooleanPair<K> |
right(boolean r)
Sets the right element of this pair (optional operation).
|
default ReferenceBooleanPair<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 ReferenceBooleanPair<K> |
second(boolean r)
Sets the right element of this pair (optional operation).
|
default ReferenceBooleanPair<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 ReferenceBooleanPair<K> |
value(boolean r)
Sets the right element of this pair (optional operation).
|
default ReferenceBooleanPair<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 ReferenceBooleanPair<K> right(boolean r)
r - a new value for the right element.@Deprecated default ReferenceBooleanPair<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 ReferenceBooleanPair<K> second(boolean r)
r - a new value for the right element.@Deprecated default ReferenceBooleanPair<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 ReferenceBooleanPair<K> value(boolean r)
r - a new value for the right element.@Deprecated default ReferenceBooleanPair<K> value(java.lang.Boolean l)
value in interface it.unimi.dsi.fastutil.Pair<K,java.lang.Boolean>static <K> ReferenceBooleanPair<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.