public static final class LObjCharPair.MutCompObjCharPair<T extends Comparable<T>> extends LObjCharPair.AbstractObjCharPair<T> implements LObjCharPair.ComparableObjCharPair<T>
Mutable, comparable tuple.
LObjCharPair.AbstractObjCharPair<T>, LObjCharPair.ComparableObjCharPair<T extends Comparable<T>>, LObjCharPair.ImmCompObjCharPair<T extends Comparable<T>>, LObjCharPair.ImmObjCharPair<T>, LObjCharPair.MutCompObjCharPair<T extends Comparable<T>>, LObjCharPair.MutObjCharPair<T>LSingle.AbstractSingle<T>, LSingle.ComparableSingle<T extends Comparable<T>>, LSingle.ImmCompSingle<T extends Comparable<T>>, LSingle.ImmSingle<T>, LSingle.MutCompSingle<T extends Comparable<T>>, LSingle.MutSingle<T>LTuple.VoidSIZE| Constructor and Description |
|---|
MutCompObjCharPair(T a1,
char a2) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
copyOf(LObjCharPair<T> tuple) |
T |
first() |
LObjCharPair.MutCompObjCharPair<T> |
first(T first) |
static <T extends Comparable<T>> |
of(T a1,
char a2) |
void |
reset() |
char |
second() |
LObjCharPair.MutCompObjCharPair<T> |
second(char second) |
LObjCharPair.MutCompObjCharPair<T> |
setFirst(T first) |
LObjCharPair.MutCompObjCharPair<T> |
setFirstIf(LBiPredicate<T,T> predicate,
T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjCharPair.MutCompObjCharPair<T> |
setFirstIf(LPredicate<T> predicate,
T first)
Sets value if predicate(current) OR current::predicate is true
|
LObjCharPair.MutCompObjCharPair<T> |
setFirstIf(T first,
LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjCharPair.MutCompObjCharPair<T> |
setFirstIfArg(T first,
LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjCharPair.MutCompObjCharPair<T> |
setFirstIfArgNotNull(R arg,
LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
|
LObjCharPair.MutCompObjCharPair<T> |
setSecond(char second) |
LObjCharPair.MutCompObjCharPair<T> |
setSecondIf(char second,
LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjCharPair.MutCompObjCharPair<T> |
setSecondIf(LBiCharPredicate predicate,
char second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjCharPair.MutCompObjCharPair<T> |
setSecondIf(LCharPredicate predicate,
char second)
Sets value if predicate(current) OR current::predicate is true
|
LObjCharPair.MutCompObjCharPair<T> |
setSecondIfArg(char second,
LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjCharPair.MutCompObjCharPair<T> |
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, valueargHashCodepublic MutCompObjCharPair(T a1, char a2)
public static <T extends Comparable<T>> LObjCharPair.MutCompObjCharPair<T> of(T a1, char a2)
public static <T extends Comparable<T>> LObjCharPair.MutCompObjCharPair<T> copyOf(LObjCharPair<T> tuple)
public T first()
first in interface LObjCharPair<T extends Comparable<T>>first in interface LSingle<T extends Comparable<T>>public LObjCharPair.MutCompObjCharPair<T> first(T first)
public char second()
second in interface LObjCharPair<T extends Comparable<T>>public LObjCharPair.MutCompObjCharPair<T> second(char second)
public LObjCharPair.MutCompObjCharPair<T> setFirst(T first)
public LObjCharPair.MutCompObjCharPair<T> setFirstIfArg(T first, LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjCharPair.MutCompObjCharPair<T> setFirstIfArgNotNull(R arg, LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjCharPair.MutCompObjCharPair<T> setFirstIf(LPredicate<T> predicate, T first)
Sets value if predicate(current) OR current::predicate is true
public LObjCharPair.MutCompObjCharPair<T> setFirstIf(T first, LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjCharPair.MutCompObjCharPair<T> setFirstIf(LBiPredicate<T,T> predicate, T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LObjCharPair.MutCompObjCharPair<T> setSecond(char second)
public LObjCharPair.MutCompObjCharPair<T> setSecondIfArg(char second, LCharPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjCharPair.MutCompObjCharPair<T> setSecondIfArgNotNull(R arg, LToCharFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjCharPair.MutCompObjCharPair<T> setSecondIf(LCharPredicate predicate, char second)
Sets value if predicate(current) OR current::predicate is true
public LObjCharPair.MutCompObjCharPair<T> setSecondIf(char second, LBiCharPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjCharPair.MutCompObjCharPair<T> 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.