public static final class LDblPair.MutDblPair extends LDblPair.AbstractDblPair
Mutable, non-comparable tuple.
LDblPair.AbstractDblPair, LDblPair.ComparableDblPair, LDblPair.ImmCompDblPair, LDblPair.ImmDblPair, LDblPair.MutCompDblPair, LDblPair.MutDblPairLDblSingle.AbstractDblSingle, LDblSingle.ComparableDblSingle, LDblSingle.ImmCompDblSingle, LDblSingle.ImmDblSingle, LDblSingle.MutCompDblSingle, LDblSingle.MutDblSingleLTuple.Void| Constructor and Description |
|---|
MutDblPair(double a1,
double a2) |
| Modifier and Type | Method and Description |
|---|---|
static LDblPair.MutDblPair |
copyOf(LDblPair tuple) |
double |
first() |
LDblPair.MutDblPair |
first(double first) |
static LDblPair.MutDblPair |
of(double a1,
double a2) |
void |
reset() |
double |
second() |
LDblPair.MutDblPair |
second(double second) |
LDblPair.MutDblPair |
setFirst(double first) |
LDblPair.MutDblPair |
setFirstIf(double first,
LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LDblPair.MutDblPair |
setFirstIf(LBiDblPredicate predicate,
double first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LDblPair.MutDblPair |
setFirstIf(LDblPredicate predicate,
double first)
Sets value if predicate(current) OR current::predicate is true
|
LDblPair.MutDblPair |
setFirstIfArg(double first,
LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LDblPair.MutDblPair |
setFirstIfArgNotNull(R arg,
LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LDblPair.MutDblPair |
setSecond(double second) |
LDblPair.MutDblPair |
setSecondIf(double second,
LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LDblPair.MutDblPair |
setSecondIf(LBiDblPredicate predicate,
double second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LDblPair.MutDblPair |
setSecondIf(LDblPredicate predicate,
double second)
Sets value if predicate(current) OR current::predicate is true
|
LDblPair.MutDblPair |
setSecondIfArg(double second,
LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LDblPair.MutDblPair |
setSecondIfArgNotNull(R arg,
LToDblFunction<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 LDblPair.MutDblPair of(double a1, double a2)
public static LDblPair.MutDblPair copyOf(LDblPair tuple)
public double first()
public LDblPair.MutDblPair first(double first)
public double second()
public LDblPair.MutDblPair second(double second)
public LDblPair.MutDblPair setFirst(double first)
public LDblPair.MutDblPair setFirstIfArg(double first, LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LDblPair.MutDblPair setFirstIfArgNotNull(R arg, LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LDblPair.MutDblPair setFirstIf(LDblPredicate predicate, double first)
Sets value if predicate(current) OR current::predicate is true
public LDblPair.MutDblPair setFirstIf(double first, LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LDblPair.MutDblPair setFirstIf(LBiDblPredicate predicate, double first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LDblPair.MutDblPair setSecond(double second)
public LDblPair.MutDblPair setSecondIfArg(double second, LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LDblPair.MutDblPair setSecondIfArgNotNull(R arg, LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LDblPair.MutDblPair setSecondIf(LDblPredicate predicate, double second)
Sets value if predicate(current) OR current::predicate is true
public LDblPair.MutDblPair setSecondIf(double second, LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LDblPair.MutDblPair setSecondIf(LBiDblPredicate predicate, double second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.