public static final class LLongIntPair.MutCompLongIntPair extends LLongIntPair.AbstractLongIntPair implements LLongIntPair.ComparableLongIntPair
Mutable, 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 |
|---|
MutCompLongIntPair(long a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LLongIntPair.MutCompLongIntPair |
copyOf(LLongIntPair tuple) |
long |
first() |
LLongIntPair.MutCompLongIntPair |
first(long first) |
static LLongIntPair.MutCompLongIntPair |
of(long a1,
int a2) |
void |
reset() |
int |
second() |
LLongIntPair.MutCompLongIntPair |
second(int second) |
LLongIntPair.MutCompLongIntPair |
setFirst(long first) |
LLongIntPair.MutCompLongIntPair |
setFirstIf(LBiLongPredicate predicate,
long first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongIntPair.MutCompLongIntPair |
setFirstIf(LLongPredicate predicate,
long first)
Sets value if predicate(current) OR current::predicate is true
|
LLongIntPair.MutCompLongIntPair |
setFirstIf(long first,
LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongIntPair.MutCompLongIntPair |
setFirstIfArg(long first,
LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongIntPair.MutCompLongIntPair |
setFirstIfArgNotNull(R arg,
LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LLongIntPair.MutCompLongIntPair |
setSecond(int second) |
LLongIntPair.MutCompLongIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongIntPair.MutCompLongIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongIntPair.MutCompLongIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LLongIntPair.MutCompLongIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongIntPair.MutCompLongIntPair |
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 LLongIntPair.MutCompLongIntPair of(long a1, int a2)
public static LLongIntPair.MutCompLongIntPair copyOf(LLongIntPair tuple)
public long first()
first in interface LLongIntPairfirst in interface LLongSinglepublic LLongIntPair.MutCompLongIntPair first(long first)
public int second()
second in interface LLongIntPairpublic LLongIntPair.MutCompLongIntPair second(int second)
public LLongIntPair.MutCompLongIntPair setFirst(long first)
public LLongIntPair.MutCompLongIntPair setFirstIfArg(long first, LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongIntPair.MutCompLongIntPair setFirstIfArgNotNull(R arg, LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongIntPair.MutCompLongIntPair setFirstIf(LLongPredicate predicate, long first)
Sets value if predicate(current) OR current::predicate is true
public LLongIntPair.MutCompLongIntPair setFirstIf(long first, LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongIntPair.MutCompLongIntPair setFirstIf(LBiLongPredicate predicate, long first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LLongIntPair.MutCompLongIntPair setSecond(int second)
public LLongIntPair.MutCompLongIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongIntPair.MutCompLongIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongIntPair.MutCompLongIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LLongIntPair.MutCompLongIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongIntPair.MutCompLongIntPair 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.