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