public interface BooleanReferencePair<V> extends Pair<java.lang.Boolean,V>
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 BooleanReferencePair<V> |
first(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanReferencePair<V> |
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 BooleanReferencePair<V> |
key(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanReferencePair<V> |
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 BooleanReferencePair<V> |
left(boolean l)
Sets the left element of this pair (optional operation).
|
default BooleanReferencePair<V> |
left(java.lang.Boolean l)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
leftBoolean()
Returns the left element of this pair.
|
static <V> BooleanReferencePair<V> |
of(boolean left,
V right)
Returns a new type-specific immutable
Pair with given left and right value. |
boolean leftBoolean()
@Deprecated default java.lang.Boolean left()
default BooleanReferencePair<V> left(boolean l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default BooleanReferencePair<V> left(java.lang.Boolean l)
default boolean firstBoolean()
left()
.@Deprecated default java.lang.Boolean first()
default BooleanReferencePair<V> first(boolean l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default BooleanReferencePair<V> first(java.lang.Boolean l)
default boolean keyBoolean()
left()
.@Deprecated default java.lang.Boolean key()
default BooleanReferencePair<V> key(boolean l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default BooleanReferencePair<V> key(java.lang.Boolean l)
Pair
static <V> BooleanReferencePair<V> of(boolean left, V right)
Pair
with given left and right value.