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