public static final class LBoolPair.MutBoolPair extends LBoolPair.AbstractBoolPair
Mutable, non-comparable tuple.
LBoolPair.AbstractBoolPair, LBoolPair.ComparableBoolPair, LBoolPair.ImmBoolPair, LBoolPair.ImmCompBoolPair, LBoolPair.MutBoolPair, LBoolPair.MutCompBoolPairLBoolSingle.AbstractBoolSingle, LBoolSingle.ComparableBoolSingle, LBoolSingle.ImmBoolSingle, LBoolSingle.ImmCompBoolSingle, LBoolSingle.MutBoolSingle, LBoolSingle.MutCompBoolSingleLTuple.Void| Constructor and Description |
|---|
MutBoolPair(boolean a1,
boolean a2) |
| Modifier and Type | Method and Description |
|---|---|
static LBoolPair.MutBoolPair |
copyOf(LBoolPair tuple) |
boolean |
first() |
LBoolPair.MutBoolPair |
first(boolean first) |
static LBoolPair.MutBoolPair |
of(boolean a1,
boolean a2) |
void |
reset() |
boolean |
second() |
LBoolPair.MutBoolPair |
second(boolean second) |
LBoolPair.MutBoolPair |
setFirst(boolean first) |
LBoolPair.MutBoolPair |
setFirstIf(boolean first,
LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolPair.MutBoolPair |
setFirstIf(LLogicalBinaryOperator predicate,
boolean first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolPair.MutBoolPair |
setFirstIf(LLogicalOperator predicate,
boolean first)
Sets value if predicate(current) OR current::predicate is true
|
LBoolPair.MutBoolPair |
setFirstIfArg(boolean first,
LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolPair.MutBoolPair |
setFirstIfArgNotNull(R arg,
LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LBoolPair.MutBoolPair |
setSecond(boolean second) |
LBoolPair.MutBoolPair |
setSecondIf(boolean second,
LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolPair.MutBoolPair |
setSecondIf(LLogicalBinaryOperator predicate,
boolean second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolPair.MutBoolPair |
setSecondIf(LLogicalOperator predicate,
boolean second)
Sets value if predicate(current) OR current::predicate is true
|
LBoolPair.MutBoolPair |
setSecondIfArg(boolean second,
LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolPair.MutBoolPair |
setSecondIfArgNotNull(R arg,
LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LBoolPair.MutBoolPair of(boolean a1, boolean a2)
public static LBoolPair.MutBoolPair copyOf(LBoolPair tuple)
public boolean first()
public LBoolPair.MutBoolPair first(boolean first)
public boolean second()
public LBoolPair.MutBoolPair second(boolean second)
public LBoolPair.MutBoolPair setFirst(boolean first)
public LBoolPair.MutBoolPair setFirstIfArg(boolean first, LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolPair.MutBoolPair setFirstIfArgNotNull(R arg, LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolPair.MutBoolPair setFirstIf(LLogicalOperator predicate, boolean first)
Sets value if predicate(current) OR current::predicate is true
public LBoolPair.MutBoolPair setFirstIf(boolean first, LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolPair.MutBoolPair setFirstIf(LLogicalBinaryOperator predicate, boolean first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LBoolPair.MutBoolPair setSecond(boolean second)
public LBoolPair.MutBoolPair setSecondIfArg(boolean second, LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolPair.MutBoolPair setSecondIfArgNotNull(R arg, LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolPair.MutBoolPair setSecondIf(LLogicalOperator predicate, boolean second)
Sets value if predicate(current) OR current::predicate is true
public LBoolPair.MutBoolPair setSecondIf(boolean second, LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolPair.MutBoolPair setSecondIf(LLogicalBinaryOperator predicate, boolean second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.