public static final class LBytePair.MutCompBytePair extends LBytePair.AbstractBytePair implements LBytePair.ComparableBytePair
Mutable, 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 |
|---|
MutCompBytePair(byte a1,
byte a2) |
| Modifier and Type | Method and Description |
|---|---|
static LBytePair.MutCompBytePair |
copyOf(LBytePair tuple) |
byte |
first() |
LBytePair.MutCompBytePair |
first(byte first) |
static LBytePair.MutCompBytePair |
of(byte a1,
byte a2) |
void |
reset() |
byte |
second() |
LBytePair.MutCompBytePair |
second(byte second) |
LBytePair.MutCompBytePair |
setFirst(byte first) |
LBytePair.MutCompBytePair |
setFirstIf(byte first,
LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBytePair.MutCompBytePair |
setFirstIf(LBiBytePredicate predicate,
byte first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBytePair.MutCompBytePair |
setFirstIf(LBytePredicate predicate,
byte first)
Sets value if predicate(current) OR current::predicate is true
|
LBytePair.MutCompBytePair |
setFirstIfArg(byte first,
LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBytePair.MutCompBytePair |
setFirstIfArgNotNull(R arg,
LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LBytePair.MutCompBytePair |
setSecond(byte second) |
LBytePair.MutCompBytePair |
setSecondIf(byte second,
LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LBytePair.MutCompBytePair |
setSecondIf(LBiBytePredicate predicate,
byte second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LBytePair.MutCompBytePair |
setSecondIf(LBytePredicate predicate,
byte second)
Sets value if predicate(current) OR current::predicate is true
|
LBytePair.MutCompBytePair |
setSecondIfArg(byte second,
LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LBytePair.MutCompBytePair |
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, waitcompareToargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LBytePair.MutCompBytePair of(byte a1, byte a2)
public static LBytePair.MutCompBytePair copyOf(LBytePair tuple)
public byte first()
first in interface LBytePairfirst in interface LByteSinglepublic LBytePair.MutCompBytePair first(byte first)
public LBytePair.MutCompBytePair second(byte second)
public LBytePair.MutCompBytePair setFirst(byte first)
public LBytePair.MutCompBytePair setFirstIfArg(byte first, LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBytePair.MutCompBytePair setFirstIfArgNotNull(R arg, LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBytePair.MutCompBytePair setFirstIf(LBytePredicate predicate, byte first)
Sets value if predicate(current) OR current::predicate is true
public LBytePair.MutCompBytePair setFirstIf(byte first, LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBytePair.MutCompBytePair setFirstIf(LBiBytePredicate predicate, byte first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LBytePair.MutCompBytePair setSecond(byte second)
public LBytePair.MutCompBytePair setSecondIfArg(byte second, LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LBytePair.MutCompBytePair setSecondIfArgNotNull(R arg, LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LBytePair.MutCompBytePair setSecondIf(LBytePredicate predicate, byte second)
Sets value if predicate(current) OR current::predicate is true
public LBytePair.MutCompBytePair setSecondIf(byte second, LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LBytePair.MutCompBytePair 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.