public static final class LBoolSingle.MutBoolSingle extends LBoolSingle.AbstractBoolSingle
Mutable, non-comparable tuple.
LBoolSingle.AbstractBoolSingle, LBoolSingle.ComparableBoolSingle, LBoolSingle.ImmBoolSingle, LBoolSingle.ImmCompBoolSingle, LBoolSingle.MutBoolSingle, LBoolSingle.MutCompBoolSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutBoolSingle(boolean a) |
| Modifier and Type | Method and Description |
|---|---|
static LBoolSingle.MutBoolSingle |
copyOf(LBoolSingle tuple) |
static LBoolSingle.MutBoolSingle |
of(boolean a) |
void |
reset() |
LBoolSingle.MutBoolSingle |
setValue(boolean value) |
LBoolSingle.MutBoolSingle |
setValueIf(boolean value,
LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolSingle.MutBoolSingle |
setValueIf(LLogicalBinaryOperator predicate,
boolean value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolSingle.MutBoolSingle |
setValueIf(LLogicalOperator predicate,
boolean value)
Sets value if predicate(current) OR current::predicate is true
|
LBoolSingle.MutBoolSingle |
setValueIfArg(boolean value,
LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolSingle.MutBoolSingle |
setValueIfArgNotNull(R arg,
LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
boolean |
value() |
LBoolSingle.MutBoolSingle |
value(boolean value) |
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitargEquals, argEquals, argHashCode, first, get, iterator, sizepublic static LBoolSingle.MutBoolSingle of(boolean a)
public static LBoolSingle.MutBoolSingle copyOf(LBoolSingle tuple)
public boolean value()
public LBoolSingle.MutBoolSingle value(boolean value)
public LBoolSingle.MutBoolSingle setValue(boolean value)
public LBoolSingle.MutBoolSingle setValueIfArg(boolean value, LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolSingle.MutBoolSingle setValueIfArgNotNull(R arg, LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolSingle.MutBoolSingle setValueIf(LLogicalOperator predicate, boolean value)
Sets value if predicate(current) OR current::predicate is true
public LBoolSingle.MutBoolSingle setValueIf(boolean value, LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolSingle.MutBoolSingle setValueIf(LLogicalBinaryOperator predicate, boolean value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.