public static final class LObjFltPair.MutObjFltPair<T> extends LObjFltPair.AbstractObjFltPair<T>
Mutable, non-comparable tuple.
LObjFltPair.AbstractObjFltPair<T>, LObjFltPair.ComparableObjFltPair<T extends Comparable<T>>, LObjFltPair.ImmCompObjFltPair<T extends Comparable<T>>, LObjFltPair.ImmObjFltPair<T>, LObjFltPair.MutCompObjFltPair<T extends Comparable<T>>, LObjFltPair.MutObjFltPair<T>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.VoidSIZE| Constructor and Description |
|---|
MutObjFltPair(T a1,
float a2) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LObjFltPair.MutObjFltPair<T> |
copyOf(LObjFltPair<T> tuple) |
T |
first() |
LObjFltPair.MutObjFltPair<T> |
first(T first) |
static <T> LObjFltPair.MutObjFltPair<T> |
of(T a1,
float a2) |
void |
reset() |
float |
second() |
LObjFltPair.MutObjFltPair<T> |
second(float second) |
LObjFltPair.MutObjFltPair<T> |
setFirst(T first) |
LObjFltPair.MutObjFltPair<T> |
setFirstIf(LBiPredicate<T,T> predicate,
T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjFltPair.MutObjFltPair<T> |
setFirstIf(LPredicate<T> predicate,
T first)
Sets value if predicate(current) OR current::predicate is true
|
LObjFltPair.MutObjFltPair<T> |
setFirstIf(T first,
LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjFltPair.MutObjFltPair<T> |
setFirstIfArg(T first,
LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjFltPair.MutObjFltPair<T> |
setFirstIfArgNotNull(R arg,
LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
|
LObjFltPair.MutObjFltPair<T> |
setSecond(float second) |
LObjFltPair.MutObjFltPair<T> |
setSecondIf(float second,
LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjFltPair.MutObjFltPair<T> |
setSecondIf(LBiFltPredicate predicate,
float second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjFltPair.MutObjFltPair<T> |
setSecondIf(LFltPredicate predicate,
float second)
Sets value if predicate(current) OR current::predicate is true
|
LObjFltPair.MutObjFltPair<T> |
setSecondIfArg(float second,
LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjFltPair.MutObjFltPair<T> |
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, valueargHashCodepublic MutObjFltPair(T a1, float a2)
public static <T> LObjFltPair.MutObjFltPair<T> of(T a1, float a2)
public static <T> LObjFltPair.MutObjFltPair<T> copyOf(LObjFltPair<T> tuple)
public T first()
public LObjFltPair.MutObjFltPair<T> first(T first)
public float second()
public LObjFltPair.MutObjFltPair<T> second(float second)
public LObjFltPair.MutObjFltPair<T> setFirst(T first)
public LObjFltPair.MutObjFltPair<T> setFirstIfArg(T first, LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjFltPair.MutObjFltPair<T> setFirstIfArgNotNull(R arg, LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjFltPair.MutObjFltPair<T> setFirstIf(LPredicate<T> predicate, T first)
Sets value if predicate(current) OR current::predicate is true
public LObjFltPair.MutObjFltPair<T> setFirstIf(T first, LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjFltPair.MutObjFltPair<T> setFirstIf(LBiPredicate<T,T> predicate, T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LObjFltPair.MutObjFltPair<T> setSecond(float second)
public LObjFltPair.MutObjFltPair<T> setSecondIfArg(float second, LFltPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjFltPair.MutObjFltPair<T> setSecondIfArgNotNull(R arg, LToFltFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjFltPair.MutObjFltPair<T> setSecondIf(LFltPredicate predicate, float second)
Sets value if predicate(current) OR current::predicate is true
public LObjFltPair.MutObjFltPair<T> setSecondIf(float second, LBiFltPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjFltPair.MutObjFltPair<T> 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.