public static final class LLongSingle.MutLongSingle extends LLongSingle.AbstractLongSingle
Mutable, non-comparable tuple.
LLongSingle.AbstractLongSingle, LLongSingle.ComparableLongSingle, LLongSingle.ImmCompLongSingle, LLongSingle.ImmLongSingle, LLongSingle.MutCompLongSingle, LLongSingle.MutLongSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutLongSingle(long a) |
| Modifier and Type | Method and Description |
|---|---|
static LLongSingle.MutLongSingle |
copyOf(LLongSingle tuple) |
static LLongSingle.MutLongSingle |
of(long a) |
void |
reset() |
LLongSingle.MutLongSingle |
setValue(long value) |
LLongSingle.MutLongSingle |
setValueIf(LBiLongPredicate predicate,
long value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongSingle.MutLongSingle |
setValueIf(LLongPredicate predicate,
long value)
Sets value if predicate(current) OR current::predicate is true
|
LLongSingle.MutLongSingle |
setValueIf(long value,
LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongSingle.MutLongSingle |
setValueIfArg(long value,
LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongSingle.MutLongSingle |
setValueIfArgNotNull(R arg,
LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
long |
value() |
LLongSingle.MutLongSingle |
value(long value) |
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitargEquals, argEquals, argHashCode, first, get, iterator, sizepublic static LLongSingle.MutLongSingle of(long a)
public static LLongSingle.MutLongSingle copyOf(LLongSingle tuple)
public long value()
public LLongSingle.MutLongSingle value(long value)
public LLongSingle.MutLongSingle setValue(long value)
public LLongSingle.MutLongSingle setValueIfArg(long value, LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongSingle.MutLongSingle setValueIfArgNotNull(R arg, LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongSingle.MutLongSingle setValueIf(LLongPredicate predicate, long value)
Sets value if predicate(current) OR current::predicate is true
public LLongSingle.MutLongSingle setValueIf(long value, LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongSingle.MutLongSingle setValueIf(LBiLongPredicate predicate, long value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.