public static final class LSrtSingle.MutSrtSingle extends LSrtSingle.AbstractSrtSingle
Mutable, non-comparable tuple.
LSrtSingle.AbstractSrtSingle, LSrtSingle.ComparableSrtSingle, LSrtSingle.ImmCompSrtSingle, LSrtSingle.ImmSrtSingle, LSrtSingle.MutCompSrtSingle, LSrtSingle.MutSrtSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutSrtSingle(short a) |
| Modifier and Type | Method and Description |
|---|---|
static LSrtSingle.MutSrtSingle |
copyOf(LSrtSingle tuple) |
static LSrtSingle.MutSrtSingle |
of(short a) |
void |
reset() |
LSrtSingle.MutSrtSingle |
setValue(short value) |
LSrtSingle.MutSrtSingle |
setValueIf(LBiSrtPredicate predicate,
short value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtSingle.MutSrtSingle |
setValueIf(LSrtPredicate predicate,
short value)
Sets value if predicate(current) OR current::predicate is true
|
LSrtSingle.MutSrtSingle |
setValueIf(short value,
LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtSingle.MutSrtSingle |
setValueIfArg(short value,
LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtSingle.MutSrtSingle |
setValueIfArgNotNull(R arg,
LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
short |
value() |
LSrtSingle.MutSrtSingle |
value(short value) |
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitargEquals, argEquals, argHashCode, first, get, iterator, sizepublic static LSrtSingle.MutSrtSingle of(short a)
public static LSrtSingle.MutSrtSingle copyOf(LSrtSingle tuple)
public short value()
public LSrtSingle.MutSrtSingle value(short value)
public LSrtSingle.MutSrtSingle setValue(short value)
public LSrtSingle.MutSrtSingle setValueIfArg(short value, LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtSingle.MutSrtSingle setValueIfArgNotNull(R arg, LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtSingle.MutSrtSingle setValueIf(LSrtPredicate predicate, short value)
Sets value if predicate(current) OR current::predicate is true
public LSrtSingle.MutSrtSingle setValueIf(short value, LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtSingle.MutSrtSingle setValueIf(LBiSrtPredicate predicate, short value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.