public static final class LObjBytePair.MutObjBytePair<T> extends LObjBytePair.AbstractObjBytePair<T>
Mutable, non-comparable tuple.
LObjBytePair.AbstractObjBytePair<T>, LObjBytePair.ComparableObjBytePair<T extends Comparable<T>>, LObjBytePair.ImmCompObjBytePair<T extends Comparable<T>>, LObjBytePair.ImmObjBytePair<T>, LObjBytePair.MutCompObjBytePair<T extends Comparable<T>>, LObjBytePair.MutObjBytePair<T>LSingle.AbstractSingle<T>, LSingle.ComparableSingle<T extends Comparable<T>>, LSingle.ImmCompSingle<T extends Comparable<T>>, LSingle.ImmSingle<T>, LSingle.MutCompSingle<T extends Comparable<T>>, LSingle.MutSingle<T>LTuple.VoidSIZE| Constructor and Description |
|---|
MutObjBytePair(T a1,
byte a2) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LObjBytePair.MutObjBytePair<T> |
copyOf(LObjBytePair<T> tuple) |
T |
first() |
LObjBytePair.MutObjBytePair<T> |
first(T first) |
static <T> LObjBytePair.MutObjBytePair<T> |
of(T a1,
byte a2) |
void |
reset() |
byte |
second() |
LObjBytePair.MutObjBytePair<T> |
second(byte second) |
LObjBytePair.MutObjBytePair<T> |
setFirst(T first) |
LObjBytePair.MutObjBytePair<T> |
setFirstIf(LBiPredicate<T,T> predicate,
T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjBytePair.MutObjBytePair<T> |
setFirstIf(LPredicate<T> predicate,
T first)
Sets value if predicate(current) OR current::predicate is true
|
LObjBytePair.MutObjBytePair<T> |
setFirstIf(T first,
LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjBytePair.MutObjBytePair<T> |
setFirstIfArg(T first,
LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjBytePair.MutObjBytePair<T> |
setFirstIfArgNotNull(R arg,
LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
|
LObjBytePair.MutObjBytePair<T> |
setSecond(byte second) |
LObjBytePair.MutObjBytePair<T> |
setSecondIf(byte second,
LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjBytePair.MutObjBytePair<T> |
setSecondIf(LBiBytePredicate predicate,
byte second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjBytePair.MutObjBytePair<T> |
setSecondIf(LBytePredicate predicate,
byte second)
Sets value if predicate(current) OR current::predicate is true
|
LObjBytePair.MutObjBytePair<T> |
setSecondIfArg(byte second,
LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjBytePair.MutObjBytePair<T> |
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, valueargHashCodepublic MutObjBytePair(T a1, byte a2)
public static <T> LObjBytePair.MutObjBytePair<T> of(T a1, byte a2)
public static <T> LObjBytePair.MutObjBytePair<T> copyOf(LObjBytePair<T> tuple)
public T first()
public LObjBytePair.MutObjBytePair<T> first(T first)
public byte second()
public LObjBytePair.MutObjBytePair<T> second(byte second)
public LObjBytePair.MutObjBytePair<T> setFirst(T first)
public LObjBytePair.MutObjBytePair<T> setFirstIfArg(T first, LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjBytePair.MutObjBytePair<T> setFirstIfArgNotNull(R arg, LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjBytePair.MutObjBytePair<T> setFirstIf(LPredicate<T> predicate, T first)
Sets value if predicate(current) OR current::predicate is true
public LObjBytePair.MutObjBytePair<T> setFirstIf(T first, LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjBytePair.MutObjBytePair<T> setFirstIf(LBiPredicate<T,T> predicate, T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LObjBytePair.MutObjBytePair<T> setSecond(byte second)
public LObjBytePair.MutObjBytePair<T> setSecondIfArg(byte second, LBytePredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjBytePair.MutObjBytePair<T> setSecondIfArgNotNull(R arg, LToByteFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjBytePair.MutObjBytePair<T> setSecondIf(LBytePredicate predicate, byte second)
Sets value if predicate(current) OR current::predicate is true
public LObjBytePair.MutObjBytePair<T> setSecondIf(byte second, LBiBytePredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjBytePair.MutObjBytePair<T> 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.