public static final class LIntSingle.MutCompIntSingle extends LIntSingle.AbstractIntSingle implements LIntSingle.ComparableIntSingle
Mutable, comparable tuple.
LIntSingle.AbstractIntSingle, LIntSingle.ComparableIntSingle, LIntSingle.ImmCompIntSingle, LIntSingle.ImmIntSingle, LIntSingle.MutCompIntSingle, LIntSingle.MutIntSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutCompIntSingle(int a) |
| Modifier and Type | Method and Description |
|---|---|
static LIntSingle.MutCompIntSingle |
copyOf(LIntSingle tuple) |
static LIntSingle.MutCompIntSingle |
of(int a) |
void |
reset() |
LIntSingle.MutCompIntSingle |
setValue(int value) |
LIntSingle.MutCompIntSingle |
setValueIf(int value,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LIntSingle.MutCompIntSingle |
setValueIf(LBiIntPredicate predicate,
int value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LIntSingle.MutCompIntSingle |
setValueIf(LIntPredicate predicate,
int value)
Sets value if predicate(current) OR current::predicate is true
|
LIntSingle.MutCompIntSingle |
setValueIfArg(int value,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LIntSingle.MutCompIntSingle |
setValueIfArgNotNull(R arg,
LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
int |
value() |
LIntSingle.MutCompIntSingle |
value(int value) |
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareToargEquals, argEquals, argHashCode, first, get, iterator, sizepublic static LIntSingle.MutCompIntSingle of(int a)
public static LIntSingle.MutCompIntSingle copyOf(LIntSingle tuple)
public int value()
value in interface LIntSinglepublic LIntSingle.MutCompIntSingle value(int value)
public LIntSingle.MutCompIntSingle setValue(int value)
public LIntSingle.MutCompIntSingle setValueIfArg(int value, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LIntSingle.MutCompIntSingle setValueIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LIntSingle.MutCompIntSingle setValueIf(LIntPredicate predicate, int value)
Sets value if predicate(current) OR current::predicate is true
public LIntSingle.MutCompIntSingle setValueIf(int value, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LIntSingle.MutCompIntSingle setValueIf(LBiIntPredicate predicate, int value)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.