public static final class LBoolIntPair.MutCompBoolIntPair extends LBoolIntPair.AbstractBoolIntPair implements LBoolIntPair.ComparableBoolIntPair
Mutable, 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 |
|---|
MutCompBoolIntPair(boolean a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LBoolIntPair.MutCompBoolIntPair |
copyOf(LBoolIntPair tuple) |
boolean |
first() |
LBoolIntPair.MutCompBoolIntPair |
first(boolean first) |
static LBoolIntPair.MutCompBoolIntPair |
of(boolean a1,
int a2) |
void |
reset() |
int |
second() |
LBoolIntPair.MutCompBoolIntPair |
second(int second) |
LBoolIntPair.MutCompBoolIntPair |
setFirst(boolean first) |
LBoolIntPair.MutCompBoolIntPair |
setFirstIf(boolean first,
LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolIntPair.MutCompBoolIntPair |
setFirstIf(LLogicalBinaryOperator predicate,
boolean first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolIntPair.MutCompBoolIntPair |
setFirstIf(LLogicalOperator predicate,
boolean first)
Sets value if predicate(current) OR current::predicate is true
|
LBoolIntPair.MutCompBoolIntPair |
setFirstIfArg(boolean first,
LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolIntPair.MutCompBoolIntPair |
setFirstIfArgNotNull(R arg,
LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LBoolIntPair.MutCompBoolIntPair |
setSecond(int second) |
LBoolIntPair.MutCompBoolIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBoolIntPair.MutCompBoolIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBoolIntPair.MutCompBoolIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LBoolIntPair.MutCompBoolIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBoolIntPair.MutCompBoolIntPair |
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 LBoolIntPair.MutCompBoolIntPair of(boolean a1, int a2)
public static LBoolIntPair.MutCompBoolIntPair copyOf(LBoolIntPair tuple)
public boolean first()
first in interface LBoolIntPairfirst in interface LBoolSinglepublic LBoolIntPair.MutCompBoolIntPair first(boolean first)
public int second()
second in interface LBoolIntPairpublic LBoolIntPair.MutCompBoolIntPair second(int second)
public LBoolIntPair.MutCompBoolIntPair setFirst(boolean first)
public LBoolIntPair.MutCompBoolIntPair setFirstIfArg(boolean first, LLogicalOperator predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolIntPair.MutCompBoolIntPair setFirstIfArgNotNull(R arg, LPredicate<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolIntPair.MutCompBoolIntPair setFirstIf(LLogicalOperator predicate, boolean first)
Sets value if predicate(current) OR current::predicate is true
public LBoolIntPair.MutCompBoolIntPair setFirstIf(boolean first, LLogicalBinaryOperator predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolIntPair.MutCompBoolIntPair setFirstIf(LLogicalBinaryOperator predicate, boolean first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LBoolIntPair.MutCompBoolIntPair setSecond(int second)
public LBoolIntPair.MutCompBoolIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBoolIntPair.MutCompBoolIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBoolIntPair.MutCompBoolIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LBoolIntPair.MutCompBoolIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBoolIntPair.MutCompBoolIntPair 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.