public static final class LObjDblPair.MutCompObjDblPair<T extends Comparable<T>> extends LObjDblPair.AbstractObjDblPair<T> implements LObjDblPair.ComparableObjDblPair<T>
Mutable, comparable tuple.
LObjDblPair.AbstractObjDblPair<T>, LObjDblPair.ComparableObjDblPair<T extends Comparable<T>>, LObjDblPair.ImmCompObjDblPair<T extends Comparable<T>>, LObjDblPair.ImmObjDblPair<T>, LObjDblPair.MutCompObjDblPair<T extends Comparable<T>>, LObjDblPair.MutObjDblPair<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 |
|---|
MutCompObjDblPair(T a1,
double a2) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
copyOf(LObjDblPair<T> tuple) |
T |
first() |
LObjDblPair.MutCompObjDblPair<T> |
first(T first) |
static <T extends Comparable<T>> |
of(T a1,
double a2) |
void |
reset() |
double |
second() |
LObjDblPair.MutCompObjDblPair<T> |
second(double second) |
LObjDblPair.MutCompObjDblPair<T> |
setFirst(T first) |
LObjDblPair.MutCompObjDblPair<T> |
setFirstIf(LBiPredicate<T,T> predicate,
T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjDblPair.MutCompObjDblPair<T> |
setFirstIf(LPredicate<T> predicate,
T first)
Sets value if predicate(current) OR current::predicate is true
|
LObjDblPair.MutCompObjDblPair<T> |
setFirstIf(T first,
LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjDblPair.MutCompObjDblPair<T> |
setFirstIfArg(T first,
LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjDblPair.MutCompObjDblPair<T> |
setFirstIfArgNotNull(R arg,
LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
|
LObjDblPair.MutCompObjDblPair<T> |
setSecond(double second) |
LObjDblPair.MutCompObjDblPair<T> |
setSecondIf(double second,
LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjDblPair.MutCompObjDblPair<T> |
setSecondIf(LBiDblPredicate predicate,
double second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjDblPair.MutCompObjDblPair<T> |
setSecondIf(LDblPredicate predicate,
double second)
Sets value if predicate(current) OR current::predicate is true
|
LObjDblPair.MutCompObjDblPair<T> |
setSecondIfArg(double second,
LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjDblPair.MutCompObjDblPair<T> |
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, valueargHashCodepublic MutCompObjDblPair(T a1, double a2)
public static <T extends Comparable<T>> LObjDblPair.MutCompObjDblPair<T> of(T a1, double a2)
public static <T extends Comparable<T>> LObjDblPair.MutCompObjDblPair<T> copyOf(LObjDblPair<T> tuple)
public T first()
first in interface LObjDblPair<T extends Comparable<T>>first in interface LSingle<T extends Comparable<T>>public LObjDblPair.MutCompObjDblPair<T> first(T first)
public double second()
second in interface LObjDblPair<T extends Comparable<T>>public LObjDblPair.MutCompObjDblPair<T> second(double second)
public LObjDblPair.MutCompObjDblPair<T> setFirst(T first)
public LObjDblPair.MutCompObjDblPair<T> setFirstIfArg(T first, LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjDblPair.MutCompObjDblPair<T> setFirstIfArgNotNull(R arg, LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjDblPair.MutCompObjDblPair<T> setFirstIf(LPredicate<T> predicate, T first)
Sets value if predicate(current) OR current::predicate is true
public LObjDblPair.MutCompObjDblPair<T> setFirstIf(T first, LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjDblPair.MutCompObjDblPair<T> setFirstIf(LBiPredicate<T,T> predicate, T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LObjDblPair.MutCompObjDblPair<T> setSecond(double second)
public LObjDblPair.MutCompObjDblPair<T> setSecondIfArg(double second, LDblPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjDblPair.MutCompObjDblPair<T> setSecondIfArgNotNull(R arg, LToDblFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjDblPair.MutCompObjDblPair<T> setSecondIf(LDblPredicate predicate, double second)
Sets value if predicate(current) OR current::predicate is true
public LObjDblPair.MutCompObjDblPair<T> setSecondIf(double second, LBiDblPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjDblPair.MutCompObjDblPair<T> 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.