public static final class LIntPair.MutCompIntPair extends LIntPair.AbstractIntPair implements LIntPair.ComparableIntPair
Mutable, comparable tuple.
LIntPair.AbstractIntPair, LIntPair.ComparableIntPair, LIntPair.ImmCompIntPair, LIntPair.ImmIntPair, LIntPair.MutCompIntPair, LIntPair.MutIntPairLIntSingle.AbstractIntSingle, LIntSingle.ComparableIntSingle, LIntSingle.ImmCompIntSingle, LIntSingle.ImmIntSingle, LIntSingle.MutCompIntSingle, LIntSingle.MutIntSingleLTuple.Void| Constructor and Description |
|---|
MutCompIntPair(int a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LIntPair.MutCompIntPair |
copyOf(LIntPair tuple) |
int |
first() |
LIntPair.MutCompIntPair |
first(int first) |
static LIntPair.MutCompIntPair |
of(int a1,
int a2) |
void |
reset() |
int |
second() |
LIntPair.MutCompIntPair |
second(int second) |
LIntPair.MutCompIntPair |
setFirst(int first) |
LIntPair.MutCompIntPair |
setFirstIf(int first,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LIntPair.MutCompIntPair |
setFirstIf(LBiIntPredicate predicate,
int first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LIntPair.MutCompIntPair |
setFirstIf(LIntPredicate predicate,
int first)
Sets value if predicate(current) OR current::predicate is true
|
LIntPair.MutCompIntPair |
setFirstIfArg(int first,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LIntPair.MutCompIntPair |
setFirstIfArgNotNull(R arg,
LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LIntPair.MutCompIntPair |
setSecond(int second) |
LIntPair.MutCompIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LIntPair.MutCompIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LIntPair.MutCompIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LIntPair.MutCompIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LIntPair.MutCompIntPair |
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 LIntPair.MutCompIntPair of(int a1, int a2)
public static LIntPair.MutCompIntPair copyOf(LIntPair tuple)
public int first()
first in interface LIntPairfirst in interface LIntSinglepublic LIntPair.MutCompIntPair first(int first)
public LIntPair.MutCompIntPair second(int second)
public LIntPair.MutCompIntPair setFirst(int first)
public LIntPair.MutCompIntPair setFirstIfArg(int first, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LIntPair.MutCompIntPair setFirstIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LIntPair.MutCompIntPair setFirstIf(LIntPredicate predicate, int first)
Sets value if predicate(current) OR current::predicate is true
public LIntPair.MutCompIntPair setFirstIf(int first, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LIntPair.MutCompIntPair setFirstIf(LBiIntPredicate predicate, int first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LIntPair.MutCompIntPair setSecond(int second)
public LIntPair.MutCompIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LIntPair.MutCompIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LIntPair.MutCompIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LIntPair.MutCompIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LIntPair.MutCompIntPair 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.