public static final class LLongIntPair.MutLongIntPair extends LLongIntPair.AbstractLongIntPair
Mutable, non-comparable tuple.
LLongIntPair.AbstractLongIntPair, LLongIntPair.ComparableLongIntPair, LLongIntPair.ImmCompLongIntPair, LLongIntPair.ImmLongIntPair, LLongIntPair.MutCompLongIntPair, LLongIntPair.MutLongIntPairLLongSingle.AbstractLongSingle, LLongSingle.ComparableLongSingle, LLongSingle.ImmCompLongSingle, LLongSingle.ImmLongSingle, LLongSingle.MutCompLongSingle, LLongSingle.MutLongSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutLongIntPair(long a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LLongIntPair.MutLongIntPair |
copyOf(LLongIntPair tuple) |
long |
first() |
LLongIntPair.MutLongIntPair |
first(long first) |
static LLongIntPair.MutLongIntPair |
of(long a1,
int a2) |
void |
reset() |
int |
second() |
LLongIntPair.MutLongIntPair |
second(int second) |
LLongIntPair.MutLongIntPair |
setFirst(long first) |
LLongIntPair.MutLongIntPair |
setFirstIf(LBiLongPredicate predicate,
long first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongIntPair.MutLongIntPair |
setFirstIf(LLongPredicate predicate,
long first)
Sets value if predicate(current) OR current::predicate is true
|
LLongIntPair.MutLongIntPair |
setFirstIf(long first,
LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongIntPair.MutLongIntPair |
setFirstIfArg(long first,
LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongIntPair.MutLongIntPair |
setFirstIfArgNotNull(R arg,
LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LLongIntPair.MutLongIntPair |
setSecond(int second) |
LLongIntPair.MutLongIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongIntPair.MutLongIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongIntPair.MutLongIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LLongIntPair.MutLongIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongIntPair.MutLongIntPair |
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 LLongIntPair.MutLongIntPair of(long a1, int a2)
public static LLongIntPair.MutLongIntPair copyOf(LLongIntPair tuple)
public long first()
public LLongIntPair.MutLongIntPair first(long first)
public int second()
public LLongIntPair.MutLongIntPair second(int second)
public LLongIntPair.MutLongIntPair setFirst(long first)
public LLongIntPair.MutLongIntPair setFirstIfArg(long first, LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongIntPair.MutLongIntPair setFirstIfArgNotNull(R arg, LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongIntPair.MutLongIntPair setFirstIf(LLongPredicate predicate, long first)
Sets value if predicate(current) OR current::predicate is true
public LLongIntPair.MutLongIntPair setFirstIf(long first, LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongIntPair.MutLongIntPair setFirstIf(LBiLongPredicate predicate, long first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LLongIntPair.MutLongIntPair setSecond(int second)
public LLongIntPair.MutLongIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongIntPair.MutLongIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongIntPair.MutLongIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LLongIntPair.MutLongIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongIntPair.MutLongIntPair 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.