public static final class LBytePair.MutBytePair extends LBytePair.AbstractBytePair
Mutable, non-comparable tuple.
LBytePair.AbstractBytePair, LBytePair.ComparableBytePair, LBytePair.ImmBytePair, LBytePair.ImmCompBytePair, LBytePair.MutBytePair, LBytePair.MutCompBytePairLByteSingle.AbstractByteSingle, LByteSingle.ComparableByteSingle, LByteSingle.ImmByteSingle, LByteSingle.ImmCompByteSingle, LByteSingle.MutByteSingle, LByteSingle.MutCompByteSingleLTuple.Void| Constructor and Description |
|---|
MutBytePair(byte a1,
byte a2) |
| Modifier and Type | Method and Description |
|---|---|
static LBytePair.MutBytePair |
copyOf(LBytePair tuple) |
byte |
first() |
LBytePair.MutBytePair |
first(byte first) |
static LBytePair.MutBytePair |
of(byte a1,
byte a2) |
void |
reset() |
byte |
second() |
LBytePair.MutBytePair |
second(byte second) |
LBytePair.MutBytePair |
setFirst(byte first) |
LBytePair.MutBytePair |
setFirstIf(byte first,
LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBytePair.MutBytePair |
setFirstIf(LBiBytePredicate predicate,
byte first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBytePair.MutBytePair |
setFirstIf(LBytePredicate predicate,
byte first)
Sets value if predicate(current) OR current::predicate is true
|
LBytePair.MutBytePair |
setFirstIfArg(byte first,
LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBytePair.MutBytePair |
setFirstIfArgNotNull(R arg,
LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LBytePair.MutBytePair |
setSecond(byte second) |
LBytePair.MutBytePair |
setSecondIf(byte second,
LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBytePair.MutBytePair |
setSecondIf(LBiBytePredicate predicate,
byte second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBytePair.MutBytePair |
setSecondIf(LBytePredicate predicate,
byte second)
Sets value if predicate(current) OR current::predicate is true
|
LBytePair.MutBytePair |
setSecondIfArg(byte second,
LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBytePair.MutBytePair |
setSecondIfArgNotNull(R arg,
LToByteFunction<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 LBytePair.MutBytePair of(byte a1, byte a2)
public static LBytePair.MutBytePair copyOf(LBytePair tuple)
public byte first()
public LBytePair.MutBytePair first(byte first)
public byte second()
public LBytePair.MutBytePair second(byte second)
public LBytePair.MutBytePair setFirst(byte first)
public LBytePair.MutBytePair setFirstIfArg(byte first, LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBytePair.MutBytePair setFirstIfArgNotNull(R arg, LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBytePair.MutBytePair setFirstIf(LBytePredicate predicate, byte first)
Sets value if predicate(current) OR current::predicate is true
public LBytePair.MutBytePair setFirstIf(byte first, LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBytePair.MutBytePair setFirstIf(LBiBytePredicate predicate, byte first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LBytePair.MutBytePair setSecond(byte second)
public LBytePair.MutBytePair setSecondIfArg(byte second, LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBytePair.MutBytePair setSecondIfArgNotNull(R arg, LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBytePair.MutBytePair setSecondIf(LBytePredicate predicate, byte second)
Sets value if predicate(current) OR current::predicate is true
public LBytePair.MutBytePair setSecondIf(byte second, LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBytePair.MutBytePair setSecondIf(LBiBytePredicate predicate, byte second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.