public static final class LCharIntPair.MutCompCharIntPair extends LCharIntPair.AbstractCharIntPair implements LCharIntPair.ComparableCharIntPair
Mutable, 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 |
|---|
MutCompCharIntPair(char a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LCharIntPair.MutCompCharIntPair |
copyOf(LCharIntPair tuple) |
char |
first() |
LCharIntPair.MutCompCharIntPair |
first(char first) |
static LCharIntPair.MutCompCharIntPair |
of(char a1,
int a2) |
void |
reset() |
int |
second() |
LCharIntPair.MutCompCharIntPair |
second(int second) |
LCharIntPair.MutCompCharIntPair |
setFirst(char first) |
LCharIntPair.MutCompCharIntPair |
setFirstIf(char first,
LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharIntPair.MutCompCharIntPair |
setFirstIf(LBiCharPredicate predicate,
char first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharIntPair.MutCompCharIntPair |
setFirstIf(LCharPredicate predicate,
char first)
Sets value if predicate(current) OR current::predicate is true
|
LCharIntPair.MutCompCharIntPair |
setFirstIfArg(char first,
LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharIntPair.MutCompCharIntPair |
setFirstIfArgNotNull(R arg,
LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LCharIntPair.MutCompCharIntPair |
setSecond(int second) |
LCharIntPair.MutCompCharIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LCharIntPair.MutCompCharIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LCharIntPair.MutCompCharIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LCharIntPair.MutCompCharIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LCharIntPair.MutCompCharIntPair |
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 LCharIntPair.MutCompCharIntPair of(char a1, int a2)
public static LCharIntPair.MutCompCharIntPair copyOf(LCharIntPair tuple)
public char first()
first in interface LCharIntPairfirst in interface LCharSinglepublic LCharIntPair.MutCompCharIntPair first(char first)
public int second()
second in interface LCharIntPairpublic LCharIntPair.MutCompCharIntPair second(int second)
public LCharIntPair.MutCompCharIntPair setFirst(char first)
public LCharIntPair.MutCompCharIntPair setFirstIfArg(char first, LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharIntPair.MutCompCharIntPair setFirstIfArgNotNull(R arg, LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharIntPair.MutCompCharIntPair setFirstIf(LCharPredicate predicate, char first)
Sets value if predicate(current) OR current::predicate is true
public LCharIntPair.MutCompCharIntPair setFirstIf(char first, LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharIntPair.MutCompCharIntPair setFirstIf(LBiCharPredicate predicate, char first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LCharIntPair.MutCompCharIntPair setSecond(int second)
public LCharIntPair.MutCompCharIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LCharIntPair.MutCompCharIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LCharIntPair.MutCompCharIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LCharIntPair.MutCompCharIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LCharIntPair.MutCompCharIntPair 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.