public static final class LCharPair.MutCompCharPair extends LCharPair.AbstractCharPair implements LCharPair.ComparableCharPair
Mutable, 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 |
|---|
MutCompCharPair(char a1,
char a2) |
| Modifier and Type | Method and Description |
|---|---|
static LCharPair.MutCompCharPair |
copyOf(LCharPair tuple) |
char |
first() |
LCharPair.MutCompCharPair |
first(char first) |
static LCharPair.MutCompCharPair |
of(char a1,
char a2) |
void |
reset() |
char |
second() |
LCharPair.MutCompCharPair |
second(char second) |
LCharPair.MutCompCharPair |
setFirst(char first) |
LCharPair.MutCompCharPair |
setFirstIf(char first,
LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharPair.MutCompCharPair |
setFirstIf(LBiCharPredicate predicate,
char first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharPair.MutCompCharPair |
setFirstIf(LCharPredicate predicate,
char first)
Sets value if predicate(current) OR current::predicate is true
|
LCharPair.MutCompCharPair |
setFirstIfArg(char first,
LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharPair.MutCompCharPair |
setFirstIfArgNotNull(R arg,
LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LCharPair.MutCompCharPair |
setSecond(char second) |
LCharPair.MutCompCharPair |
setSecondIf(char second,
LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharPair.MutCompCharPair |
setSecondIf(LBiCharPredicate predicate,
char second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharPair.MutCompCharPair |
setSecondIf(LCharPredicate predicate,
char second)
Sets value if predicate(current) OR current::predicate is true
|
LCharPair.MutCompCharPair |
setSecondIfArg(char second,
LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharPair.MutCompCharPair |
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, waitcompareToargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LCharPair.MutCompCharPair of(char a1, char a2)
public static LCharPair.MutCompCharPair copyOf(LCharPair tuple)
public char first()
first in interface LCharPairfirst in interface LCharSinglepublic LCharPair.MutCompCharPair first(char first)
public LCharPair.MutCompCharPair second(char second)
public LCharPair.MutCompCharPair setFirst(char first)
public LCharPair.MutCompCharPair setFirstIfArg(char first, LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharPair.MutCompCharPair setFirstIfArgNotNull(R arg, LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharPair.MutCompCharPair setFirstIf(LCharPredicate predicate, char first)
Sets value if predicate(current) OR current::predicate is true
public LCharPair.MutCompCharPair setFirstIf(char first, LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharPair.MutCompCharPair setFirstIf(LBiCharPredicate predicate, char first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LCharPair.MutCompCharPair setSecond(char second)
public LCharPair.MutCompCharPair setSecondIfArg(char second, LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharPair.MutCompCharPair setSecondIfArgNotNull(R arg, LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharPair.MutCompCharPair setSecondIf(LCharPredicate predicate, char second)
Sets value if predicate(current) OR current::predicate is true
public LCharPair.MutCompCharPair setSecondIf(char second, LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharPair.MutCompCharPair 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.