public static final class LIntPair.MutIntPair extends LIntPair.AbstractIntPair
Mutable, non-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 |
|---|
MutIntPair(int a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LIntPair.MutIntPair |
copyOf(LIntPair tuple) |
int |
first() |
LIntPair.MutIntPair |
first(int first) |
static LIntPair.MutIntPair |
of(int a1,
int a2) |
void |
reset() |
int |
second() |
LIntPair.MutIntPair |
second(int second) |
LIntPair.MutIntPair |
setFirst(int first) |
LIntPair.MutIntPair |
setFirstIf(int first,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LIntPair.MutIntPair |
setFirstIf(LBiIntPredicate predicate,
int first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LIntPair.MutIntPair |
setFirstIf(LIntPredicate predicate,
int first)
Sets value if predicate(current) OR current::predicate is true
|
LIntPair.MutIntPair |
setFirstIfArg(int first,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LIntPair.MutIntPair |
setFirstIfArgNotNull(R arg,
LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LIntPair.MutIntPair |
setSecond(int second) |
LIntPair.MutIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LIntPair.MutIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LIntPair.MutIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LIntPair.MutIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LIntPair.MutIntPair |
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 LIntPair.MutIntPair of(int a1, int a2)
public static LIntPair.MutIntPair copyOf(LIntPair tuple)
public int first()
public LIntPair.MutIntPair first(int first)
public int second()
public LIntPair.MutIntPair second(int second)
public LIntPair.MutIntPair setFirst(int first)
public LIntPair.MutIntPair setFirstIfArg(int first, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LIntPair.MutIntPair setFirstIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LIntPair.MutIntPair setFirstIf(LIntPredicate predicate, int first)
Sets value if predicate(current) OR current::predicate is true
public LIntPair.MutIntPair setFirstIf(int first, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LIntPair.MutIntPair setFirstIf(LBiIntPredicate predicate, int first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LIntPair.MutIntPair setSecond(int second)
public LIntPair.MutIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LIntPair.MutIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LIntPair.MutIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LIntPair.MutIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LIntPair.MutIntPair 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.