public static final class LObjLongPair.MutObjLongPair<T> extends LObjLongPair.AbstractObjLongPair<T>
Mutable, non-comparable tuple.
LObjLongPair.AbstractObjLongPair<T>, LObjLongPair.ComparableObjLongPair<T extends Comparable<T>>, LObjLongPair.ImmCompObjLongPair<T extends Comparable<T>>, LObjLongPair.ImmObjLongPair<T>, LObjLongPair.MutCompObjLongPair<T extends Comparable<T>>, LObjLongPair.MutObjLongPair<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 |
|---|
MutObjLongPair(T a1,
long a2) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LObjLongPair.MutObjLongPair<T> |
copyOf(LObjLongPair<T> tuple) |
T |
first() |
LObjLongPair.MutObjLongPair<T> |
first(T first) |
static <T> LObjLongPair.MutObjLongPair<T> |
of(T a1,
long a2) |
void |
reset() |
long |
second() |
LObjLongPair.MutObjLongPair<T> |
second(long second) |
LObjLongPair.MutObjLongPair<T> |
setFirst(T first) |
LObjLongPair.MutObjLongPair<T> |
setFirstIf(LBiPredicate<T,T> predicate,
T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjLongPair.MutObjLongPair<T> |
setFirstIf(LPredicate<T> predicate,
T first)
Sets value if predicate(current) OR current::predicate is true
|
LObjLongPair.MutObjLongPair<T> |
setFirstIf(T first,
LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjLongPair.MutObjLongPair<T> |
setFirstIfArg(T first,
LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjLongPair.MutObjLongPair<T> |
setFirstIfArgNotNull(R arg,
LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
|
LObjLongPair.MutObjLongPair<T> |
setSecond(long second) |
LObjLongPair.MutObjLongPair<T> |
setSecondIf(LBiLongPredicate predicate,
long second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjLongPair.MutObjLongPair<T> |
setSecondIf(LLongPredicate predicate,
long second)
Sets value if predicate(current) OR current::predicate is true
|
LObjLongPair.MutObjLongPair<T> |
setSecondIf(long second,
LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjLongPair.MutObjLongPair<T> |
setSecondIfArg(long second,
LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjLongPair.MutObjLongPair<T> |
setSecondIfArgNotNull(R arg,
LToLongFunction<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, valueargHashCodepublic MutObjLongPair(T a1, long a2)
public static <T> LObjLongPair.MutObjLongPair<T> of(T a1, long a2)
public static <T> LObjLongPair.MutObjLongPair<T> copyOf(LObjLongPair<T> tuple)
public T first()
public LObjLongPair.MutObjLongPair<T> first(T first)
public long second()
public LObjLongPair.MutObjLongPair<T> second(long second)
public LObjLongPair.MutObjLongPair<T> setFirst(T first)
public LObjLongPair.MutObjLongPair<T> setFirstIfArg(T first, LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjLongPair.MutObjLongPair<T> setFirstIfArgNotNull(R arg, LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjLongPair.MutObjLongPair<T> setFirstIf(LPredicate<T> predicate, T first)
Sets value if predicate(current) OR current::predicate is true
public LObjLongPair.MutObjLongPair<T> setFirstIf(T first, LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjLongPair.MutObjLongPair<T> setFirstIf(LBiPredicate<T,T> predicate, T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LObjLongPair.MutObjLongPair<T> setSecond(long second)
public LObjLongPair.MutObjLongPair<T> setSecondIfArg(long second, LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjLongPair.MutObjLongPair<T> setSecondIfArgNotNull(R arg, LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjLongPair.MutObjLongPair<T> setSecondIf(LLongPredicate predicate, long second)
Sets value if predicate(current) OR current::predicate is true
public LObjLongPair.MutObjLongPair<T> setSecondIf(long second, LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjLongPair.MutObjLongPair<T> setSecondIf(LBiLongPredicate predicate, long second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.