public static final class LDblPair.MutCompDblPair extends LDblPair.AbstractDblPair implements LDblPair.ComparableDblPair
Mutable, 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 |
|---|
MutCompDblPair(double a1,
double a2) |
| Modifier and Type | Method and Description |
|---|---|
static LDblPair.MutCompDblPair |
copyOf(LDblPair tuple) |
double |
first() |
LDblPair.MutCompDblPair |
first(double first) |
static LDblPair.MutCompDblPair |
of(double a1,
double a2) |
void |
reset() |
double |
second() |
LDblPair.MutCompDblPair |
second(double second) |
LDblPair.MutCompDblPair |
setFirst(double first) |
LDblPair.MutCompDblPair |
setFirstIf(double first,
LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LDblPair.MutCompDblPair |
setFirstIf(LBiDblPredicate predicate,
double first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LDblPair.MutCompDblPair |
setFirstIf(LDblPredicate predicate,
double first)
Sets value if predicate(current) OR current::predicate is true
|
LDblPair.MutCompDblPair |
setFirstIfArg(double first,
LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LDblPair.MutCompDblPair |
setFirstIfArgNotNull(R arg,
LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LDblPair.MutCompDblPair |
setSecond(double second) |
LDblPair.MutCompDblPair |
setSecondIf(double second,
LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LDblPair.MutCompDblPair |
setSecondIf(LBiDblPredicate predicate,
double second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LDblPair.MutCompDblPair |
setSecondIf(LDblPredicate predicate,
double second)
Sets value if predicate(current) OR current::predicate is true
|
LDblPair.MutCompDblPair |
setSecondIfArg(double second,
LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LDblPair.MutCompDblPair |
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, waitcompareToargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LDblPair.MutCompDblPair of(double a1, double a2)
public static LDblPair.MutCompDblPair copyOf(LDblPair tuple)
public double first()
first in interface LDblPairfirst in interface LDblSinglepublic LDblPair.MutCompDblPair first(double first)
public LDblPair.MutCompDblPair second(double second)
public LDblPair.MutCompDblPair setFirst(double first)
public LDblPair.MutCompDblPair setFirstIfArg(double first, LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LDblPair.MutCompDblPair setFirstIfArgNotNull(R arg, LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LDblPair.MutCompDblPair setFirstIf(LDblPredicate predicate, double first)
Sets value if predicate(current) OR current::predicate is true
public LDblPair.MutCompDblPair setFirstIf(double first, LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LDblPair.MutCompDblPair setFirstIf(LBiDblPredicate predicate, double first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LDblPair.MutCompDblPair setSecond(double second)
public LDblPair.MutCompDblPair setSecondIfArg(double second, LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LDblPair.MutCompDblPair setSecondIfArgNotNull(R arg, LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LDblPair.MutCompDblPair setSecondIf(LDblPredicate predicate, double second)
Sets value if predicate(current) OR current::predicate is true
public LDblPair.MutCompDblPair setSecondIf(double second, LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LDblPair.MutCompDblPair 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.