public static final class LObjBoolPair.MutCompObjBoolPair<T extends Comparable<T>> extends LObjBoolPair.AbstractObjBoolPair<T> implements LObjBoolPair.ComparableObjBoolPair<T>
Mutable, comparable tuple.
LObjBoolPair.AbstractObjBoolPair<T>, LObjBoolPair.ComparableObjBoolPair<T extends Comparable<T>>, LObjBoolPair.ImmCompObjBoolPair<T extends Comparable<T>>, LObjBoolPair.ImmObjBoolPair<T>, LObjBoolPair.MutCompObjBoolPair<T extends Comparable<T>>, LObjBoolPair.MutObjBoolPair<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 |
|---|
MutCompObjBoolPair(T a1,
boolean a2) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
copyOf(LObjBoolPair<T> tuple) |
T |
first() |
LObjBoolPair.MutCompObjBoolPair<T> |
first(T first) |
static <T extends Comparable<T>> |
of(T a1,
boolean a2) |
void |
reset() |
boolean |
second() |
LObjBoolPair.MutCompObjBoolPair<T> |
second(boolean second) |
LObjBoolPair.MutCompObjBoolPair<T> |
setFirst(T first) |
LObjBoolPair.MutCompObjBoolPair<T> |
setFirstIf(LBiPredicate<T,T> predicate,
T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjBoolPair.MutCompObjBoolPair<T> |
setFirstIf(LPredicate<T> predicate,
T first)
Sets value if predicate(current) OR current::predicate is true
|
LObjBoolPair.MutCompObjBoolPair<T> |
setFirstIf(T first,
LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjBoolPair.MutCompObjBoolPair<T> |
setFirstIfArg(T first,
LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjBoolPair.MutCompObjBoolPair<T> |
setFirstIfArgNotNull(R arg,
LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
|
LObjBoolPair.MutCompObjBoolPair<T> |
setSecond(boolean second) |
LObjBoolPair.MutCompObjBoolPair<T> |
setSecondIf(boolean second,
LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjBoolPair.MutCompObjBoolPair<T> |
setSecondIf(LLogicalBinaryOperator predicate,
boolean second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjBoolPair.MutCompObjBoolPair<T> |
setSecondIf(LLogicalOperator predicate,
boolean second)
Sets value if predicate(current) OR current::predicate is true
|
LObjBoolPair.MutCompObjBoolPair<T> |
setSecondIfArg(boolean second,
LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjBoolPair.MutCompObjBoolPair<T> |
setSecondIfArgNotNull(R arg,
LPredicate<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 MutCompObjBoolPair(T a1, boolean a2)
public static <T extends Comparable<T>> LObjBoolPair.MutCompObjBoolPair<T> of(T a1, boolean a2)
public static <T extends Comparable<T>> LObjBoolPair.MutCompObjBoolPair<T> copyOf(LObjBoolPair<T> tuple)
public T first()
first in interface LObjBoolPair<T extends Comparable<T>>first in interface LSingle<T extends Comparable<T>>public LObjBoolPair.MutCompObjBoolPair<T> first(T first)
public boolean second()
second in interface LObjBoolPair<T extends Comparable<T>>public LObjBoolPair.MutCompObjBoolPair<T> second(boolean second)
public LObjBoolPair.MutCompObjBoolPair<T> setFirst(T first)
public LObjBoolPair.MutCompObjBoolPair<T> setFirstIfArg(T first, LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjBoolPair.MutCompObjBoolPair<T> setFirstIfArgNotNull(R arg, LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjBoolPair.MutCompObjBoolPair<T> setFirstIf(LPredicate<T> predicate, T first)
Sets value if predicate(current) OR current::predicate is true
public LObjBoolPair.MutCompObjBoolPair<T> setFirstIf(T first, LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjBoolPair.MutCompObjBoolPair<T> setFirstIf(LBiPredicate<T,T> predicate, T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LObjBoolPair.MutCompObjBoolPair<T> setSecond(boolean second)
public LObjBoolPair.MutCompObjBoolPair<T> setSecondIfArg(boolean second, LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjBoolPair.MutCompObjBoolPair<T> setSecondIfArgNotNull(R arg, LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjBoolPair.MutCompObjBoolPair<T> setSecondIf(LLogicalOperator predicate, boolean second)
Sets value if predicate(current) OR current::predicate is true
public LObjBoolPair.MutCompObjBoolPair<T> setSecondIf(boolean second, LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjBoolPair.MutCompObjBoolPair<T> setSecondIf(LLogicalBinaryOperator predicate, boolean second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.