public static final class LLongPair.MutLongPair extends LLongPair.AbstractLongPair
Mutable, non-comparable tuple.
LLongPair.AbstractLongPair, LLongPair.ComparableLongPair, LLongPair.ImmCompLongPair, LLongPair.ImmLongPair, LLongPair.MutCompLongPair, LLongPair.MutLongPairLLongSingle.AbstractLongSingle, LLongSingle.ComparableLongSingle, LLongSingle.ImmCompLongSingle, LLongSingle.ImmLongSingle, LLongSingle.MutCompLongSingle, LLongSingle.MutLongSingleLTuple.Void| Constructor and Description |
|---|
MutLongPair(long a1,
long a2) |
| Modifier and Type | Method and Description |
|---|---|
static LLongPair.MutLongPair |
copyOf(LLongPair tuple) |
long |
first() |
LLongPair.MutLongPair |
first(long first) |
static LLongPair.MutLongPair |
of(long a1,
long a2) |
void |
reset() |
long |
second() |
LLongPair.MutLongPair |
second(long second) |
LLongPair.MutLongPair |
setFirst(long first) |
LLongPair.MutLongPair |
setFirstIf(LBiLongPredicate predicate,
long first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongPair.MutLongPair |
setFirstIf(LLongPredicate predicate,
long first)
Sets value if predicate(current) OR current::predicate is true
|
LLongPair.MutLongPair |
setFirstIf(long first,
LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongPair.MutLongPair |
setFirstIfArg(long first,
LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongPair.MutLongPair |
setFirstIfArgNotNull(R arg,
LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LLongPair.MutLongPair |
setSecond(long second) |
LLongPair.MutLongPair |
setSecondIf(LBiLongPredicate predicate,
long second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongPair.MutLongPair |
setSecondIf(LLongPredicate predicate,
long second)
Sets value if predicate(current) OR current::predicate is true
|
LLongPair.MutLongPair |
setSecondIf(long second,
LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongPair.MutLongPair |
setSecondIfArg(long second,
LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongPair.MutLongPair |
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, valueargEquals, argEquals, argHashCodepublic static LLongPair.MutLongPair of(long a1, long a2)
public static LLongPair.MutLongPair copyOf(LLongPair tuple)
public long first()
public LLongPair.MutLongPair first(long first)
public long second()
public LLongPair.MutLongPair second(long second)
public LLongPair.MutLongPair setFirst(long first)
public LLongPair.MutLongPair setFirstIfArg(long first, LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongPair.MutLongPair setFirstIfArgNotNull(R arg, LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongPair.MutLongPair setFirstIf(LLongPredicate predicate, long first)
Sets value if predicate(current) OR current::predicate is true
public LLongPair.MutLongPair setFirstIf(long first, LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongPair.MutLongPair setFirstIf(LBiLongPredicate predicate, long first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LLongPair.MutLongPair setSecond(long second)
public LLongPair.MutLongPair setSecondIfArg(long second, LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongPair.MutLongPair setSecondIfArgNotNull(R arg, LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongPair.MutLongPair setSecondIf(LLongPredicate predicate, long second)
Sets value if predicate(current) OR current::predicate is true
public LLongPair.MutLongPair setSecondIf(long second, LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongPair.MutLongPair 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.