public static final class LBoolPair.MutCompBoolPair extends LBoolPair.AbstractBoolPair implements LBoolPair.ComparableBoolPair
Mutable, comparable tuple.
LBoolPair.AbstractBoolPair, LBoolPair.ComparableBoolPair, LBoolPair.ImmBoolPair, LBoolPair.ImmCompBoolPair, LBoolPair.MutBoolPair, LBoolPair.MutCompBoolPairLBoolSingle.AbstractBoolSingle, LBoolSingle.ComparableBoolSingle, LBoolSingle.ImmBoolSingle, LBoolSingle.ImmCompBoolSingle, LBoolSingle.MutBoolSingle, LBoolSingle.MutCompBoolSingleLTuple.Void| Constructor and Description |
|---|
MutCompBoolPair(boolean a1,
boolean a2) |
| Modifier and Type | Method and Description |
|---|---|
static LBoolPair.MutCompBoolPair |
copyOf(LBoolPair tuple) |
boolean |
first() |
LBoolPair.MutCompBoolPair |
first(boolean first) |
static LBoolPair.MutCompBoolPair |
of(boolean a1,
boolean a2) |
void |
reset() |
boolean |
second() |
LBoolPair.MutCompBoolPair |
second(boolean second) |
LBoolPair.MutCompBoolPair |
setFirst(boolean first) |
LBoolPair.MutCompBoolPair |
setFirstIf(boolean first,
LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolPair.MutCompBoolPair |
setFirstIf(LLogicalBinaryOperator predicate,
boolean first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolPair.MutCompBoolPair |
setFirstIf(LLogicalOperator predicate,
boolean first)
Sets value if predicate(current) OR current::predicate is true
|
LBoolPair.MutCompBoolPair |
setFirstIfArg(boolean first,
LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolPair.MutCompBoolPair |
setFirstIfArgNotNull(R arg,
LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LBoolPair.MutCompBoolPair |
setSecond(boolean second) |
LBoolPair.MutCompBoolPair |
setSecondIf(boolean second,
LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolPair.MutCompBoolPair |
setSecondIf(LLogicalBinaryOperator predicate,
boolean second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolPair.MutCompBoolPair |
setSecondIf(LLogicalOperator predicate,
boolean second)
Sets value if predicate(current) OR current::predicate is true
|
LBoolPair.MutCompBoolPair |
setSecondIfArg(boolean second,
LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolPair.MutCompBoolPair |
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, valueargEquals, argEquals, argHashCodepublic static LBoolPair.MutCompBoolPair of(boolean a1, boolean a2)
public static LBoolPair.MutCompBoolPair copyOf(LBoolPair tuple)
public boolean first()
first in interface LBoolPairfirst in interface LBoolSinglepublic LBoolPair.MutCompBoolPair first(boolean first)
public LBoolPair.MutCompBoolPair second(boolean second)
public LBoolPair.MutCompBoolPair setFirst(boolean first)
public LBoolPair.MutCompBoolPair setFirstIfArg(boolean first, LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolPair.MutCompBoolPair setFirstIfArgNotNull(R arg, LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolPair.MutCompBoolPair setFirstIf(LLogicalOperator predicate, boolean first)
Sets value if predicate(current) OR current::predicate is true
public LBoolPair.MutCompBoolPair setFirstIf(boolean first, LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolPair.MutCompBoolPair setFirstIf(LLogicalBinaryOperator predicate, boolean first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LBoolPair.MutCompBoolPair setSecond(boolean second)
public LBoolPair.MutCompBoolPair setSecondIfArg(boolean second, LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolPair.MutCompBoolPair setSecondIfArgNotNull(R arg, LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolPair.MutCompBoolPair setSecondIf(LLogicalOperator predicate, boolean second)
Sets value if predicate(current) OR current::predicate is true
public LBoolPair.MutCompBoolPair setSecondIf(boolean second, LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolPair.MutCompBoolPair 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.