public static final class LCharSingle.MutCharSingle extends LCharSingle.AbstractCharSingle
Mutable, non-comparable tuple.
LCharSingle.AbstractCharSingle, LCharSingle.ComparableCharSingle, LCharSingle.ImmCharSingle, LCharSingle.ImmCompCharSingle, LCharSingle.MutCharSingle, LCharSingle.MutCompCharSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutCharSingle(char a) |
| Modifier and Type | Method and Description |
|---|---|
static LCharSingle.MutCharSingle |
copyOf(LCharSingle tuple) |
static LCharSingle.MutCharSingle |
of(char a) |
void |
reset() |
LCharSingle.MutCharSingle |
setValue(char value) |
LCharSingle.MutCharSingle |
setValueIf(char value,
LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharSingle.MutCharSingle |
setValueIf(LBiCharPredicate predicate,
char value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharSingle.MutCharSingle |
setValueIf(LCharPredicate predicate,
char value)
Sets value if predicate(current) OR current::predicate is true
|
LCharSingle.MutCharSingle |
setValueIfArg(char value,
LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharSingle.MutCharSingle |
setValueIfArgNotNull(R arg,
LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
char |
value() |
LCharSingle.MutCharSingle |
value(char value) |
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitargEquals, argEquals, argHashCode, first, get, iterator, sizepublic static LCharSingle.MutCharSingle of(char a)
public static LCharSingle.MutCharSingle copyOf(LCharSingle tuple)
public char value()
public LCharSingle.MutCharSingle value(char value)
public LCharSingle.MutCharSingle setValue(char value)
public LCharSingle.MutCharSingle setValueIfArg(char value, LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharSingle.MutCharSingle setValueIfArgNotNull(R arg, LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharSingle.MutCharSingle setValueIf(LCharPredicate predicate, char value)
Sets value if predicate(current) OR current::predicate is true
public LCharSingle.MutCharSingle setValueIf(char value, LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharSingle.MutCharSingle setValueIf(LBiCharPredicate predicate, char value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.