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