public static final class LDblIntPair.MutDblIntPair extends LDblIntPair.AbstractDblIntPair
Mutable, non-comparable tuple.
LDblIntPair.AbstractDblIntPair, LDblIntPair.ComparableDblIntPair, LDblIntPair.ImmCompDblIntPair, LDblIntPair.ImmDblIntPair, LDblIntPair.MutCompDblIntPair, LDblIntPair.MutDblIntPairLDblSingle.AbstractDblSingle, LDblSingle.ComparableDblSingle, LDblSingle.ImmCompDblSingle, LDblSingle.ImmDblSingle, LDblSingle.MutCompDblSingle, LDblSingle.MutDblSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutDblIntPair(double a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LDblIntPair.MutDblIntPair |
copyOf(LDblIntPair tuple) |
double |
first() |
LDblIntPair.MutDblIntPair |
first(double first) |
static LDblIntPair.MutDblIntPair |
of(double a1,
int a2) |
void |
reset() |
int |
second() |
LDblIntPair.MutDblIntPair |
second(int second) |
LDblIntPair.MutDblIntPair |
setFirst(double first) |
LDblIntPair.MutDblIntPair |
setFirstIf(double first,
LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LDblIntPair.MutDblIntPair |
setFirstIf(LBiDblPredicate predicate,
double first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LDblIntPair.MutDblIntPair |
setFirstIf(LDblPredicate predicate,
double first)
Sets value if predicate(current) OR current::predicate is true
|
LDblIntPair.MutDblIntPair |
setFirstIfArg(double first,
LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LDblIntPair.MutDblIntPair |
setFirstIfArgNotNull(R arg,
LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LDblIntPair.MutDblIntPair |
setSecond(int second) |
LDblIntPair.MutDblIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LDblIntPair.MutDblIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LDblIntPair.MutDblIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LDblIntPair.MutDblIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LDblIntPair.MutDblIntPair |
setSecondIfArgNotNull(R arg,
LToIntFunction<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 LDblIntPair.MutDblIntPair of(double a1, int a2)
public static LDblIntPair.MutDblIntPair copyOf(LDblIntPair tuple)
public double first()
public LDblIntPair.MutDblIntPair first(double first)
public int second()
public LDblIntPair.MutDblIntPair second(int second)
public LDblIntPair.MutDblIntPair setFirst(double first)
public LDblIntPair.MutDblIntPair setFirstIfArg(double first, LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LDblIntPair.MutDblIntPair setFirstIfArgNotNull(R arg, LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LDblIntPair.MutDblIntPair setFirstIf(LDblPredicate predicate, double first)
Sets value if predicate(current) OR current::predicate is true
public LDblIntPair.MutDblIntPair setFirstIf(double first, LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LDblIntPair.MutDblIntPair setFirstIf(LBiDblPredicate predicate, double first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LDblIntPair.MutDblIntPair setSecond(int second)
public LDblIntPair.MutDblIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LDblIntPair.MutDblIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LDblIntPair.MutDblIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LDblIntPair.MutDblIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LDblIntPair.MutDblIntPair setSecondIf(LBiIntPredicate predicate, int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.