public static final class LSrtPair.MutCompSrtPair extends LSrtPair.AbstractSrtPair implements LSrtPair.ComparableSrtPair
Mutable, comparable tuple.
LSrtPair.AbstractSrtPair, LSrtPair.ComparableSrtPair, LSrtPair.ImmCompSrtPair, LSrtPair.ImmSrtPair, LSrtPair.MutCompSrtPair, LSrtPair.MutSrtPairLSrtSingle.AbstractSrtSingle, LSrtSingle.ComparableSrtSingle, LSrtSingle.ImmCompSrtSingle, LSrtSingle.ImmSrtSingle, LSrtSingle.MutCompSrtSingle, LSrtSingle.MutSrtSingleLTuple.Void| Constructor and Description |
|---|
MutCompSrtPair(short a1,
short a2) |
| Modifier and Type | Method and Description |
|---|---|
static LSrtPair.MutCompSrtPair |
copyOf(LSrtPair tuple) |
short |
first() |
LSrtPair.MutCompSrtPair |
first(short first) |
static LSrtPair.MutCompSrtPair |
of(short a1,
short a2) |
void |
reset() |
short |
second() |
LSrtPair.MutCompSrtPair |
second(short second) |
LSrtPair.MutCompSrtPair |
setFirst(short first) |
LSrtPair.MutCompSrtPair |
setFirstIf(LBiSrtPredicate predicate,
short first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtPair.MutCompSrtPair |
setFirstIf(LSrtPredicate predicate,
short first)
Sets value if predicate(current) OR current::predicate is true
|
LSrtPair.MutCompSrtPair |
setFirstIf(short first,
LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtPair.MutCompSrtPair |
setFirstIfArg(short first,
LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtPair.MutCompSrtPair |
setFirstIfArgNotNull(R arg,
LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LSrtPair.MutCompSrtPair |
setSecond(short second) |
LSrtPair.MutCompSrtPair |
setSecondIf(LBiSrtPredicate predicate,
short second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtPair.MutCompSrtPair |
setSecondIf(LSrtPredicate predicate,
short second)
Sets value if predicate(current) OR current::predicate is true
|
LSrtPair.MutCompSrtPair |
setSecondIf(short second,
LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtPair.MutCompSrtPair |
setSecondIfArg(short second,
LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtPair.MutCompSrtPair |
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, valueargEquals, argEquals, argHashCodepublic static LSrtPair.MutCompSrtPair of(short a1, short a2)
public static LSrtPair.MutCompSrtPair copyOf(LSrtPair tuple)
public short first()
first in interface LSrtPairfirst in interface LSrtSinglepublic LSrtPair.MutCompSrtPair first(short first)
public LSrtPair.MutCompSrtPair second(short second)
public LSrtPair.MutCompSrtPair setFirst(short first)
public LSrtPair.MutCompSrtPair setFirstIfArg(short first, LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtPair.MutCompSrtPair setFirstIfArgNotNull(R arg, LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtPair.MutCompSrtPair setFirstIf(LSrtPredicate predicate, short first)
Sets value if predicate(current) OR current::predicate is true
public LSrtPair.MutCompSrtPair setFirstIf(short first, LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtPair.MutCompSrtPair setFirstIf(LBiSrtPredicate predicate, short first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LSrtPair.MutCompSrtPair setSecond(short second)
public LSrtPair.MutCompSrtPair setSecondIfArg(short second, LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtPair.MutCompSrtPair setSecondIfArgNotNull(R arg, LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtPair.MutCompSrtPair setSecondIf(LSrtPredicate predicate, short second)
Sets value if predicate(current) OR current::predicate is true
public LSrtPair.MutCompSrtPair setSecondIf(short second, LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtPair.MutCompSrtPair 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.