public static final class LBoolIntPair.MutBoolIntPair extends LBoolIntPair.AbstractBoolIntPair
Mutable, non-comparable tuple.
LBoolIntPair.AbstractBoolIntPair, LBoolIntPair.ComparableBoolIntPair, LBoolIntPair.ImmBoolIntPair, LBoolIntPair.ImmCompBoolIntPair, LBoolIntPair.MutBoolIntPair, LBoolIntPair.MutCompBoolIntPairLBoolSingle.AbstractBoolSingle, LBoolSingle.ComparableBoolSingle, LBoolSingle.ImmBoolSingle, LBoolSingle.ImmCompBoolSingle, LBoolSingle.MutBoolSingle, LBoolSingle.MutCompBoolSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutBoolIntPair(boolean a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LBoolIntPair.MutBoolIntPair |
copyOf(LBoolIntPair tuple) |
boolean |
first() |
LBoolIntPair.MutBoolIntPair |
first(boolean first) |
static LBoolIntPair.MutBoolIntPair |
of(boolean a1,
int a2) |
void |
reset() |
int |
second() |
LBoolIntPair.MutBoolIntPair |
second(int second) |
LBoolIntPair.MutBoolIntPair |
setFirst(boolean first) |
LBoolIntPair.MutBoolIntPair |
setFirstIf(boolean first,
LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolIntPair.MutBoolIntPair |
setFirstIf(LLogicalBinaryOperator predicate,
boolean first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolIntPair.MutBoolIntPair |
setFirstIf(LLogicalOperator predicate,
boolean first)
Sets value if predicate(current) OR current::predicate is true
|
LBoolIntPair.MutBoolIntPair |
setFirstIfArg(boolean first,
LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolIntPair.MutBoolIntPair |
setFirstIfArgNotNull(R arg,
LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LBoolIntPair.MutBoolIntPair |
setSecond(int second) |
LBoolIntPair.MutBoolIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolIntPair.MutBoolIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolIntPair.MutBoolIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LBoolIntPair.MutBoolIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolIntPair.MutBoolIntPair |
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, waitargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LBoolIntPair.MutBoolIntPair of(boolean a1, int a2)
public static LBoolIntPair.MutBoolIntPair copyOf(LBoolIntPair tuple)
public boolean first()
public LBoolIntPair.MutBoolIntPair first(boolean first)
public int second()
public LBoolIntPair.MutBoolIntPair second(int second)
public LBoolIntPair.MutBoolIntPair setFirst(boolean first)
public LBoolIntPair.MutBoolIntPair setFirstIfArg(boolean first, LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolIntPair.MutBoolIntPair setFirstIfArgNotNull(R arg, LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolIntPair.MutBoolIntPair setFirstIf(LLogicalOperator predicate, boolean first)
Sets value if predicate(current) OR current::predicate is true
public LBoolIntPair.MutBoolIntPair setFirstIf(boolean first, LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolIntPair.MutBoolIntPair setFirstIf(LLogicalBinaryOperator predicate, boolean first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LBoolIntPair.MutBoolIntPair setSecond(int second)
public LBoolIntPair.MutBoolIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolIntPair.MutBoolIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolIntPair.MutBoolIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LBoolIntPair.MutBoolIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolIntPair.MutBoolIntPair 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.