public static final class LByteIntPair.MutCompByteIntPair extends LByteIntPair.AbstractByteIntPair implements LByteIntPair.ComparableByteIntPair
Mutable, comparable tuple.
LByteIntPair.AbstractByteIntPair, LByteIntPair.ComparableByteIntPair, LByteIntPair.ImmByteIntPair, LByteIntPair.ImmCompByteIntPair, LByteIntPair.MutByteIntPair, LByteIntPair.MutCompByteIntPairLByteSingle.AbstractByteSingle, LByteSingle.ComparableByteSingle, LByteSingle.ImmByteSingle, LByteSingle.ImmCompByteSingle, LByteSingle.MutByteSingle, LByteSingle.MutCompByteSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutCompByteIntPair(byte a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LByteIntPair.MutCompByteIntPair |
copyOf(LByteIntPair tuple) |
byte |
first() |
LByteIntPair.MutCompByteIntPair |
first(byte first) |
static LByteIntPair.MutCompByteIntPair |
of(byte a1,
int a2) |
void |
reset() |
int |
second() |
LByteIntPair.MutCompByteIntPair |
second(int second) |
LByteIntPair.MutCompByteIntPair |
setFirst(byte first) |
LByteIntPair.MutCompByteIntPair |
setFirstIf(byte first,
LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LByteIntPair.MutCompByteIntPair |
setFirstIf(LBiBytePredicate predicate,
byte first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LByteIntPair.MutCompByteIntPair |
setFirstIf(LBytePredicate predicate,
byte first)
Sets value if predicate(current) OR current::predicate is true
|
LByteIntPair.MutCompByteIntPair |
setFirstIfArg(byte first,
LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LByteIntPair.MutCompByteIntPair |
setFirstIfArgNotNull(R arg,
LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LByteIntPair.MutCompByteIntPair |
setSecond(int second) |
LByteIntPair.MutCompByteIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LByteIntPair.MutCompByteIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LByteIntPair.MutCompByteIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LByteIntPair.MutCompByteIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LByteIntPair.MutCompByteIntPair |
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 LByteIntPair.MutCompByteIntPair of(byte a1, int a2)
public static LByteIntPair.MutCompByteIntPair copyOf(LByteIntPair tuple)
public byte first()
first in interface LByteIntPairfirst in interface LByteSinglepublic LByteIntPair.MutCompByteIntPair first(byte first)
public int second()
second in interface LByteIntPairpublic LByteIntPair.MutCompByteIntPair second(int second)
public LByteIntPair.MutCompByteIntPair setFirst(byte first)
public LByteIntPair.MutCompByteIntPair setFirstIfArg(byte first, LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LByteIntPair.MutCompByteIntPair setFirstIfArgNotNull(R arg, LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LByteIntPair.MutCompByteIntPair setFirstIf(LBytePredicate predicate, byte first)
Sets value if predicate(current) OR current::predicate is true
public LByteIntPair.MutCompByteIntPair setFirstIf(byte first, LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LByteIntPair.MutCompByteIntPair setFirstIf(LBiBytePredicate predicate, byte first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LByteIntPair.MutCompByteIntPair setSecond(int second)
public LByteIntPair.MutCompByteIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LByteIntPair.MutCompByteIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LByteIntPair.MutCompByteIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LByteIntPair.MutCompByteIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LByteIntPair.MutCompByteIntPair 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.