public static final class LFltPair.MutCompFltPair extends LFltPair.AbstractFltPair implements LFltPair.ComparableFltPair
Mutable, 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 |
|---|
MutCompFltPair(float a1,
float a2) |
| Modifier and Type | Method and Description |
|---|---|
static LFltPair.MutCompFltPair |
copyOf(LFltPair tuple) |
float |
first() |
LFltPair.MutCompFltPair |
first(float first) |
static LFltPair.MutCompFltPair |
of(float a1,
float a2) |
void |
reset() |
float |
second() |
LFltPair.MutCompFltPair |
second(float second) |
LFltPair.MutCompFltPair |
setFirst(float first) |
LFltPair.MutCompFltPair |
setFirstIf(float first,
LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LFltPair.MutCompFltPair |
setFirstIf(LBiFltPredicate predicate,
float first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LFltPair.MutCompFltPair |
setFirstIf(LFltPredicate predicate,
float first)
Sets value if predicate(current) OR current::predicate is true
|
LFltPair.MutCompFltPair |
setFirstIfArg(float first,
LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LFltPair.MutCompFltPair |
setFirstIfArgNotNull(R arg,
LToFltFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LFltPair.MutCompFltPair |
setSecond(float second) |
LFltPair.MutCompFltPair |
setSecondIf(float second,
LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LFltPair.MutCompFltPair |
setSecondIf(LBiFltPredicate predicate,
float second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LFltPair.MutCompFltPair |
setSecondIf(LFltPredicate predicate,
float second)
Sets value if predicate(current) OR current::predicate is true
|
LFltPair.MutCompFltPair |
setSecondIfArg(float second,
LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LFltPair.MutCompFltPair |
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, waitcompareToargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LFltPair.MutCompFltPair of(float a1, float a2)
public static LFltPair.MutCompFltPair copyOf(LFltPair tuple)
public float first()
first in interface LFltPairfirst in interface LFltSinglepublic LFltPair.MutCompFltPair first(float first)
public LFltPair.MutCompFltPair second(float second)
public LFltPair.MutCompFltPair setFirst(float first)
public LFltPair.MutCompFltPair setFirstIfArg(float first, LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LFltPair.MutCompFltPair setFirstIfArgNotNull(R arg, LToFltFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LFltPair.MutCompFltPair setFirstIf(LFltPredicate predicate, float first)
Sets value if predicate(current) OR current::predicate is true
public LFltPair.MutCompFltPair setFirstIf(float first, LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LFltPair.MutCompFltPair setFirstIf(LBiFltPredicate predicate, float first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LFltPair.MutCompFltPair setSecond(float second)
public LFltPair.MutCompFltPair setSecondIfArg(float second, LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LFltPair.MutCompFltPair setSecondIfArgNotNull(R arg, LToFltFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LFltPair.MutCompFltPair setSecondIf(LFltPredicate predicate, float second)
Sets value if predicate(current) OR current::predicate is true
public LFltPair.MutCompFltPair setSecondIf(float second, LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LFltPair.MutCompFltPair 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.