public static final class LLongPair.MutCompLongPair extends LLongPair.AbstractLongPair implements LLongPair.ComparableLongPair
Mutable, 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 |
|---|
MutCompLongPair(long a1,
long a2) |
| Modifier and Type | Method and Description |
|---|---|
static LLongPair.MutCompLongPair |
copyOf(LLongPair tuple) |
long |
first() |
LLongPair.MutCompLongPair |
first(long first) |
static LLongPair.MutCompLongPair |
of(long a1,
long a2) |
void |
reset() |
long |
second() |
LLongPair.MutCompLongPair |
second(long second) |
LLongPair.MutCompLongPair |
setFirst(long first) |
LLongPair.MutCompLongPair |
setFirstIf(LBiLongPredicate predicate,
long first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongPair.MutCompLongPair |
setFirstIf(LLongPredicate predicate,
long first)
Sets value if predicate(current) OR current::predicate is true
|
LLongPair.MutCompLongPair |
setFirstIf(long first,
LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongPair.MutCompLongPair |
setFirstIfArg(long first,
LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongPair.MutCompLongPair |
setFirstIfArgNotNull(R arg,
LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LLongPair.MutCompLongPair |
setSecond(long second) |
LLongPair.MutCompLongPair |
setSecondIf(LBiLongPredicate predicate,
long second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LLongPair.MutCompLongPair |
setSecondIf(LLongPredicate predicate,
long second)
Sets value if predicate(current) OR current::predicate is true
|
LLongPair.MutCompLongPair |
setSecondIf(long second,
LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LLongPair.MutCompLongPair |
setSecondIfArg(long second,
LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LLongPair.MutCompLongPair |
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, waitcompareToargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LLongPair.MutCompLongPair of(long a1, long a2)
public static LLongPair.MutCompLongPair copyOf(LLongPair tuple)
public long first()
first in interface LLongPairfirst in interface LLongSinglepublic LLongPair.MutCompLongPair first(long first)
public LLongPair.MutCompLongPair second(long second)
public LLongPair.MutCompLongPair setFirst(long first)
public LLongPair.MutCompLongPair setFirstIfArg(long first, LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongPair.MutCompLongPair setFirstIfArgNotNull(R arg, LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongPair.MutCompLongPair setFirstIf(LLongPredicate predicate, long first)
Sets value if predicate(current) OR current::predicate is true
public LLongPair.MutCompLongPair setFirstIf(long first, LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongPair.MutCompLongPair setFirstIf(LBiLongPredicate predicate, long first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LLongPair.MutCompLongPair setSecond(long second)
public LLongPair.MutCompLongPair setSecondIfArg(long second, LLongPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LLongPair.MutCompLongPair setSecondIfArgNotNull(R arg, LToLongFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LLongPair.MutCompLongPair setSecondIf(LLongPredicate predicate, long second)
Sets value if predicate(current) OR current::predicate is true
public LLongPair.MutCompLongPair setSecondIf(long second, LBiLongPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LLongPair.MutCompLongPair 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.