LSingle.AbstractSingle<T>, LSingle.ComparableSingle<T extends Comparable<T>>, LSingle.ImmCompSingle<T extends Comparable<T>>, LSingle.ImmSingle<T>, LSingle.MutCompSingle<T extends Comparable<T>>, LSingle.MutSingle<T>LTuple.Void| Modifier and Type | Method and Description |
|---|---|
static <T> LSingle.MutSingle<T> |
copyOf(LSingle<T> tuple) |
static <T> LSingle.MutSingle<T> |
of(T a) |
void |
reset() |
LSingle.MutSingle<T> |
setValue(T value) |
LSingle.MutSingle<T> |
setValueIf(LBiPredicate<T,T> predicate,
T value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSingle.MutSingle<T> |
setValueIf(LPredicate<T> predicate,
T value)
Sets value if predicate(current) OR current::predicate is true
|
LSingle.MutSingle<T> |
setValueIf(T value,
LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSingle.MutSingle<T> |
setValueIfArg(T value,
LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSingle.MutSingle<T> |
setValueIfArgNotNull(R arg,
LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
|
T |
value() |
LSingle.MutSingle<T> |
value(T value) |
equals, hashCode, toStringpublic MutSingle(T a)
public static <T> LSingle.MutSingle<T> of(T a)
public static <T> LSingle.MutSingle<T> copyOf(LSingle<T> tuple)
public T value()
public LSingle.MutSingle<T> value(T value)
public LSingle.MutSingle<T> setValue(T value)
public LSingle.MutSingle<T> setValueIfArg(T value, LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSingle.MutSingle<T> setValueIfArgNotNull(R arg, LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
public LSingle.MutSingle<T> setValueIf(LPredicate<T> predicate, T value)
Sets value if predicate(current) OR current::predicate is true
public LSingle.MutSingle<T> setValueIf(T value, LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSingle.MutSingle<T> setValueIf(LBiPredicate<T,T> predicate, T value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.