public static final class LFltPair.MutFltPair extends LFltPair.AbstractFltPair
Mutable, non-comparable tuple.
LFltPair.AbstractFltPair, LFltPair.ComparableFltPair, LFltPair.ImmCompFltPair, LFltPair.ImmFltPair, LFltPair.MutCompFltPair, LFltPair.MutFltPairLFltSingle.AbstractFltSingle, LFltSingle.ComparableFltSingle, LFltSingle.ImmCompFltSingle, LFltSingle.ImmFltSingle, LFltSingle.MutCompFltSingle, LFltSingle.MutFltSingleLTuple.Void| Constructor and Description |
|---|
MutFltPair(float a1,
float a2) |
| Modifier and Type | Method and Description |
|---|---|
static LFltPair.MutFltPair |
copyOf(LFltPair tuple) |
float |
first() |
LFltPair.MutFltPair |
first(float first) |
static LFltPair.MutFltPair |
of(float a1,
float a2) |
void |
reset() |
float |
second() |
LFltPair.MutFltPair |
second(float second) |
LFltPair.MutFltPair |
setFirst(float first) |
LFltPair.MutFltPair |
setFirstIf(float first,
LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LFltPair.MutFltPair |
setFirstIf(LBiFltPredicate predicate,
float first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LFltPair.MutFltPair |
setFirstIf(LFltPredicate predicate,
float first)
Sets value if predicate(current) OR current::predicate is true
|
LFltPair.MutFltPair |
setFirstIfArg(float first,
LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LFltPair.MutFltPair |
setFirstIfArgNotNull(R arg,
LToFltFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LFltPair.MutFltPair |
setSecond(float second) |
LFltPair.MutFltPair |
setSecondIf(float second,
LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LFltPair.MutFltPair |
setSecondIf(LBiFltPredicate predicate,
float second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LFltPair.MutFltPair |
setSecondIf(LFltPredicate predicate,
float second)
Sets value if predicate(current) OR current::predicate is true
|
LFltPair.MutFltPair |
setSecondIfArg(float second,
LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LFltPair.MutFltPair |
setSecondIfArgNotNull(R arg,
LToFltFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LFltPair.MutFltPair of(float a1, float a2)
public static LFltPair.MutFltPair copyOf(LFltPair tuple)
public float first()
public LFltPair.MutFltPair first(float first)
public float second()
public LFltPair.MutFltPair second(float second)
public LFltPair.MutFltPair setFirst(float first)
public LFltPair.MutFltPair setFirstIfArg(float first, LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LFltPair.MutFltPair setFirstIfArgNotNull(R arg, LToFltFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LFltPair.MutFltPair setFirstIf(LFltPredicate predicate, float first)
Sets value if predicate(current) OR current::predicate is true
public LFltPair.MutFltPair setFirstIf(float first, LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LFltPair.MutFltPair setFirstIf(LBiFltPredicate predicate, float first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LFltPair.MutFltPair setSecond(float second)
public LFltPair.MutFltPair setSecondIfArg(float second, LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LFltPair.MutFltPair setSecondIfArgNotNull(R arg, LToFltFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LFltPair.MutFltPair setSecondIf(LFltPredicate predicate, float second)
Sets value if predicate(current) OR current::predicate is true
public LFltPair.MutFltPair setSecondIf(float second, LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LFltPair.MutFltPair setSecondIf(LBiFltPredicate predicate, float second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.