public static final class LObjSrtPair.MutCompObjSrtPair<T extends Comparable<T>> extends LObjSrtPair.AbstractObjSrtPair<T> implements LObjSrtPair.ComparableObjSrtPair<T>
Mutable, comparable tuple.
LObjSrtPair.AbstractObjSrtPair<T>, LObjSrtPair.ComparableObjSrtPair<T extends Comparable<T>>, LObjSrtPair.ImmCompObjSrtPair<T extends Comparable<T>>, LObjSrtPair.ImmObjSrtPair<T>, LObjSrtPair.MutCompObjSrtPair<T extends Comparable<T>>, LObjSrtPair.MutObjSrtPair<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 |
|---|
MutCompObjSrtPair(T a1,
short a2) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
copyOf(LObjSrtPair<T> tuple) |
T |
first() |
LObjSrtPair.MutCompObjSrtPair<T> |
first(T first) |
static <T extends Comparable<T>> |
of(T a1,
short a2) |
void |
reset() |
short |
second() |
LObjSrtPair.MutCompObjSrtPair<T> |
second(short second) |
LObjSrtPair.MutCompObjSrtPair<T> |
setFirst(T first) |
LObjSrtPair.MutCompObjSrtPair<T> |
setFirstIf(LBiPredicate<T,T> predicate,
T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjSrtPair.MutCompObjSrtPair<T> |
setFirstIf(LPredicate<T> predicate,
T first)
Sets value if predicate(current) OR current::predicate is true
|
LObjSrtPair.MutCompObjSrtPair<T> |
setFirstIf(T first,
LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjSrtPair.MutCompObjSrtPair<T> |
setFirstIfArg(T first,
LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjSrtPair.MutCompObjSrtPair<T> |
setFirstIfArgNotNull(R arg,
LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
|
LObjSrtPair.MutCompObjSrtPair<T> |
setSecond(short second) |
LObjSrtPair.MutCompObjSrtPair<T> |
setSecondIf(LBiSrtPredicate predicate,
short second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LObjSrtPair.MutCompObjSrtPair<T> |
setSecondIf(LSrtPredicate predicate,
short second)
Sets value if predicate(current) OR current::predicate is true
|
LObjSrtPair.MutCompObjSrtPair<T> |
setSecondIf(short second,
LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LObjSrtPair.MutCompObjSrtPair<T> |
setSecondIfArg(short second,
LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LObjSrtPair.MutCompObjSrtPair<T> |
setSecondIfArgNotNull(R arg,
LToSrtFunction<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, valueargHashCodepublic MutCompObjSrtPair(T a1, short a2)
public static <T extends Comparable<T>> LObjSrtPair.MutCompObjSrtPair<T> of(T a1, short a2)
public static <T extends Comparable<T>> LObjSrtPair.MutCompObjSrtPair<T> copyOf(LObjSrtPair<T> tuple)
public T first()
first in interface LObjSrtPair<T extends Comparable<T>>first in interface LSingle<T extends Comparable<T>>public LObjSrtPair.MutCompObjSrtPair<T> first(T first)
public short second()
second in interface LObjSrtPair<T extends Comparable<T>>public LObjSrtPair.MutCompObjSrtPair<T> second(short second)
public LObjSrtPair.MutCompObjSrtPair<T> setFirst(T first)
public LObjSrtPair.MutCompObjSrtPair<T> setFirstIfArg(T first, LPredicate<T> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjSrtPair.MutCompObjSrtPair<T> setFirstIfArgNotNull(R arg, LFunction<R,T> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjSrtPair.MutCompObjSrtPair<T> setFirstIf(LPredicate<T> predicate, T first)
Sets value if predicate(current) OR current::predicate is true
public LObjSrtPair.MutCompObjSrtPair<T> setFirstIf(T first, LBiPredicate<T,T> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjSrtPair.MutCompObjSrtPair<T> setFirstIf(LBiPredicate<T,T> predicate, T first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LObjSrtPair.MutCompObjSrtPair<T> setSecond(short second)
public LObjSrtPair.MutCompObjSrtPair<T> setSecondIfArg(short second, LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LObjSrtPair.MutCompObjSrtPair<T> setSecondIfArgNotNull(R arg, LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LObjSrtPair.MutCompObjSrtPair<T> setSecondIf(LSrtPredicate predicate, short second)
Sets value if predicate(current) OR current::predicate is true
public LObjSrtPair.MutCompObjSrtPair<T> setSecondIf(short second, LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LObjSrtPair.MutCompObjSrtPair<T> setSecondIf(LBiSrtPredicate predicate, short second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.