public static final class LCharIntPair.MutCharIntPair extends LCharIntPair.AbstractCharIntPair
Mutable, non-comparable tuple.
LCharIntPair.AbstractCharIntPair, LCharIntPair.ComparableCharIntPair, LCharIntPair.ImmCharIntPair, LCharIntPair.ImmCompCharIntPair, LCharIntPair.MutCharIntPair, LCharIntPair.MutCompCharIntPairLCharSingle.AbstractCharSingle, LCharSingle.ComparableCharSingle, LCharSingle.ImmCharSingle, LCharSingle.ImmCompCharSingle, LCharSingle.MutCharSingle, LCharSingle.MutCompCharSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutCharIntPair(char a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LCharIntPair.MutCharIntPair |
copyOf(LCharIntPair tuple) |
char |
first() |
LCharIntPair.MutCharIntPair |
first(char first) |
static LCharIntPair.MutCharIntPair |
of(char a1,
int a2) |
void |
reset() |
int |
second() |
LCharIntPair.MutCharIntPair |
second(int second) |
LCharIntPair.MutCharIntPair |
setFirst(char first) |
LCharIntPair.MutCharIntPair |
setFirstIf(char first,
LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharIntPair.MutCharIntPair |
setFirstIf(LBiCharPredicate predicate,
char first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharIntPair.MutCharIntPair |
setFirstIf(LCharPredicate predicate,
char first)
Sets value if predicate(current) OR current::predicate is true
|
LCharIntPair.MutCharIntPair |
setFirstIfArg(char first,
LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharIntPair.MutCharIntPair |
setFirstIfArgNotNull(R arg,
LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LCharIntPair.MutCharIntPair |
setSecond(int second) |
LCharIntPair.MutCharIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharIntPair.MutCharIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharIntPair.MutCharIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LCharIntPair.MutCharIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharIntPair.MutCharIntPair |
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 LCharIntPair.MutCharIntPair of(char a1, int a2)
public static LCharIntPair.MutCharIntPair copyOf(LCharIntPair tuple)
public char first()
public LCharIntPair.MutCharIntPair first(char first)
public int second()
public LCharIntPair.MutCharIntPair second(int second)
public LCharIntPair.MutCharIntPair setFirst(char first)
public LCharIntPair.MutCharIntPair setFirstIfArg(char first, LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharIntPair.MutCharIntPair setFirstIfArgNotNull(R arg, LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharIntPair.MutCharIntPair setFirstIf(LCharPredicate predicate, char first)
Sets value if predicate(current) OR current::predicate is true
public LCharIntPair.MutCharIntPair setFirstIf(char first, LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharIntPair.MutCharIntPair setFirstIf(LBiCharPredicate predicate, char first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LCharIntPair.MutCharIntPair setSecond(int second)
public LCharIntPair.MutCharIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharIntPair.MutCharIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharIntPair.MutCharIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LCharIntPair.MutCharIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharIntPair.MutCharIntPair 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.