public static final class LCharPair.MutCharPair extends LCharPair.AbstractCharPair
Mutable, non-comparable tuple.
LCharPair.AbstractCharPair, LCharPair.ComparableCharPair, LCharPair.ImmCharPair, LCharPair.ImmCompCharPair, LCharPair.MutCharPair, LCharPair.MutCompCharPairLCharSingle.AbstractCharSingle, LCharSingle.ComparableCharSingle, LCharSingle.ImmCharSingle, LCharSingle.ImmCompCharSingle, LCharSingle.MutCharSingle, LCharSingle.MutCompCharSingleLTuple.Void| Constructor and Description |
|---|
MutCharPair(char a1,
char a2) |
| Modifier and Type | Method and Description |
|---|---|
static LCharPair.MutCharPair |
copyOf(LCharPair tuple) |
char |
first() |
LCharPair.MutCharPair |
first(char first) |
static LCharPair.MutCharPair |
of(char a1,
char a2) |
void |
reset() |
char |
second() |
LCharPair.MutCharPair |
second(char second) |
LCharPair.MutCharPair |
setFirst(char first) |
LCharPair.MutCharPair |
setFirstIf(char first,
LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharPair.MutCharPair |
setFirstIf(LBiCharPredicate predicate,
char first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharPair.MutCharPair |
setFirstIf(LCharPredicate predicate,
char first)
Sets value if predicate(current) OR current::predicate is true
|
LCharPair.MutCharPair |
setFirstIfArg(char first,
LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharPair.MutCharPair |
setFirstIfArgNotNull(R arg,
LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LCharPair.MutCharPair |
setSecond(char second) |
LCharPair.MutCharPair |
setSecondIf(char second,
LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharPair.MutCharPair |
setSecondIf(LBiCharPredicate predicate,
char second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharPair.MutCharPair |
setSecondIf(LCharPredicate predicate,
char second)
Sets value if predicate(current) OR current::predicate is true
|
LCharPair.MutCharPair |
setSecondIfArg(char second,
LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharPair.MutCharPair |
setSecondIfArgNotNull(R arg,
LToCharFunction<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 LCharPair.MutCharPair of(char a1, char a2)
public static LCharPair.MutCharPair copyOf(LCharPair tuple)
public char first()
public LCharPair.MutCharPair first(char first)
public char second()
public LCharPair.MutCharPair second(char second)
public LCharPair.MutCharPair setFirst(char first)
public LCharPair.MutCharPair setFirstIfArg(char first, LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharPair.MutCharPair setFirstIfArgNotNull(R arg, LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharPair.MutCharPair setFirstIf(LCharPredicate predicate, char first)
Sets value if predicate(current) OR current::predicate is true
public LCharPair.MutCharPair setFirstIf(char first, LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharPair.MutCharPair setFirstIf(LBiCharPredicate predicate, char first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LCharPair.MutCharPair setSecond(char second)
public LCharPair.MutCharPair setSecondIfArg(char second, LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharPair.MutCharPair setSecondIfArgNotNull(R arg, LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharPair.MutCharPair setSecondIf(LCharPredicate predicate, char second)
Sets value if predicate(current) OR current::predicate is true
public LCharPair.MutCharPair setSecondIf(char second, LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharPair.MutCharPair setSecondIf(LBiCharPredicate predicate, char second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.