public static final class LTriple.MutCompTriple<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>> extends LTriple.AbstractTriple<T1,T2,T3> implements LTriple.ComparableTriple<T1,T2,T3>
Mutable, comparable tuple.
LTriple.AbstractTriple<T1,T2,T3>, LTriple.ComparableTriple<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>, LTriple.ImmCompTriple<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>, LTriple.ImmTriple<T1,T2,T3>, LTriple.MutCompTriple<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>, LTriple.MutTriple<T1,T2,T3>LPair.AbstractPair<T1,T2>, LPair.ComparablePair<T1 extends Comparable<T1>,T2 extends Comparable<T2>>, LPair.ImmCompPair<T1 extends Comparable<T1>,T2 extends Comparable<T2>>, LPair.ImmPair<T1,T2>, LPair.MutCompPair<T1 extends Comparable<T1>,T2 extends Comparable<T2>>, LPair.MutPair<T1,T2>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.Void| Constructor and Description |
|---|
MutCompTriple(T1 a1,
T2 a2,
T3 a3) |
| Modifier and Type | Method and Description |
|---|---|
static <T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>> |
copyOf(LTriple<T1,T2,T3> tuple) |
T1 |
first() |
LTriple.MutCompTriple<T1,T2,T3> |
first(T1 first) |
static <T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>> |
of(T1 a1,
T2 a2,
T3 a3) |
void |
reset() |
T2 |
second() |
LTriple.MutCompTriple<T1,T2,T3> |
second(T2 second) |
LTriple.MutCompTriple<T1,T2,T3> |
setFirst(T1 first) |
LTriple.MutCompTriple<T1,T2,T3> |
setFirstIf(LBiPredicate<T1,T1> predicate,
T1 first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LTriple.MutCompTriple<T1,T2,T3> |
setFirstIf(LPredicate<T1> predicate,
T1 first)
Sets value if predicate(current) OR current::predicate is true
|
LTriple.MutCompTriple<T1,T2,T3> |
setFirstIf(T1 first,
LBiPredicate<T1,T1> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LTriple.MutCompTriple<T1,T2,T3> |
setFirstIfArg(T1 first,
LPredicate<T1> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LTriple.MutCompTriple<T1,T2,T3> |
setFirstIfArgNotNull(R arg,
LFunction<R,T1> func)
Sets value derived from non-null argument, only if argument is not null.
|
LTriple.MutCompTriple<T1,T2,T3> |
setSecond(T2 second) |
LTriple.MutCompTriple<T1,T2,T3> |
setSecondIf(LBiPredicate<T2,T2> predicate,
T2 second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LTriple.MutCompTriple<T1,T2,T3> |
setSecondIf(LPredicate<T2> predicate,
T2 second)
Sets value if predicate(current) OR current::predicate is true
|
LTriple.MutCompTriple<T1,T2,T3> |
setSecondIf(T2 second,
LBiPredicate<T2,T2> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LTriple.MutCompTriple<T1,T2,T3> |
setSecondIfArg(T2 second,
LPredicate<T2> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LTriple.MutCompTriple<T1,T2,T3> |
setSecondIfArgNotNull(R arg,
LFunction<R,T2> func)
Sets value derived from non-null argument, only if argument is not null.
|
LTriple.MutCompTriple<T1,T2,T3> |
setThird(T3 third) |
LTriple.MutCompTriple<T1,T2,T3> |
setThirdIf(LBiPredicate<T3,T3> predicate,
T3 third)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LTriple.MutCompTriple<T1,T2,T3> |
setThirdIf(LPredicate<T3> predicate,
T3 third)
Sets value if predicate(current) OR current::predicate is true
|
LTriple.MutCompTriple<T1,T2,T3> |
setThirdIf(T3 third,
LBiPredicate<T3,T3> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LTriple.MutCompTriple<T1,T2,T3> |
setThirdIfArg(T3 third,
LPredicate<T3> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LTriple.MutCompTriple<T1,T2,T3> |
setThirdIfArgNotNull(R arg,
LFunction<R,T3> func)
Sets value derived from non-null argument, only if argument is not null.
|
T3 |
third() |
LTriple.MutCompTriple<T1,T2,T3> |
third(T3 third) |
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareToargEquals, argEquals, argHashCode, get, getKey, getValue, iterator, setValue, size, valueargEquals, argEquals, argHashCodeargHashCodecomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodepublic static <T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>> LTriple.MutCompTriple<T1,T2,T3> of(T1 a1, T2 a2, T3 a3)
public static <T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>> LTriple.MutCompTriple<T1,T2,T3> copyOf(LTriple<T1,T2,T3> tuple)
public T1 first()
first in interface LPair<T1 extends Comparable<T1>,T2 extends Comparable<T2>>first in interface LSingle<T1 extends Comparable<T1>>first in interface LTriple<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>public LTriple.MutCompTriple<T1,T2,T3> first(T1 first)
public T2 second()
second in interface LPair<T1 extends Comparable<T1>,T2 extends Comparable<T2>>second in interface LTriple<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>public LTriple.MutCompTriple<T1,T2,T3> second(T2 second)
public T3 third()
third in interface LTriple<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>public LTriple.MutCompTriple<T1,T2,T3> third(T3 third)
public LTriple.MutCompTriple<T1,T2,T3> setFirst(T1 first)
public LTriple.MutCompTriple<T1,T2,T3> setFirstIfArg(T1 first, LPredicate<T1> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LTriple.MutCompTriple<T1,T2,T3> setFirstIfArgNotNull(R arg, LFunction<R,T1> func)
Sets value derived from non-null argument, only if argument is not null.
public LTriple.MutCompTriple<T1,T2,T3> setFirstIf(LPredicate<T1> predicate, T1 first)
Sets value if predicate(current) OR current::predicate is true
public LTriple.MutCompTriple<T1,T2,T3> setFirstIf(T1 first, LBiPredicate<T1,T1> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LTriple.MutCompTriple<T1,T2,T3> setFirstIf(LBiPredicate<T1,T1> predicate, T1 first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LTriple.MutCompTriple<T1,T2,T3> setSecond(T2 second)
public LTriple.MutCompTriple<T1,T2,T3> setSecondIfArg(T2 second, LPredicate<T2> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LTriple.MutCompTriple<T1,T2,T3> setSecondIfArgNotNull(R arg, LFunction<R,T2> func)
Sets value derived from non-null argument, only if argument is not null.
public LTriple.MutCompTriple<T1,T2,T3> setSecondIf(LPredicate<T2> predicate, T2 second)
Sets value if predicate(current) OR current::predicate is true
public LTriple.MutCompTriple<T1,T2,T3> setSecondIf(T2 second, LBiPredicate<T2,T2> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LTriple.MutCompTriple<T1,T2,T3> setSecondIf(LBiPredicate<T2,T2> predicate, T2 second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LTriple.MutCompTriple<T1,T2,T3> setThird(T3 third)
public LTriple.MutCompTriple<T1,T2,T3> setThirdIfArg(T3 third, LPredicate<T3> predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LTriple.MutCompTriple<T1,T2,T3> setThirdIfArgNotNull(R arg, LFunction<R,T3> func)
Sets value derived from non-null argument, only if argument is not null.
public LTriple.MutCompTriple<T1,T2,T3> setThirdIf(LPredicate<T3> predicate, T3 third)
Sets value if predicate(current) OR current::predicate is true
public LTriple.MutCompTriple<T1,T2,T3> setThirdIf(T3 third, LBiPredicate<T3,T3> predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LTriple.MutCompTriple<T1,T2,T3> setThirdIf(LBiPredicate<T3,T3> predicate, T3 third)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.