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