public static final class LSrtPair.MutSrtPair extends LSrtPair.AbstractSrtPair
Mutable, non-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 |
|---|
MutSrtPair(short a1,
short a2) |
| Modifier and Type | Method and Description |
|---|---|
static LSrtPair.MutSrtPair |
copyOf(LSrtPair tuple) |
short |
first() |
LSrtPair.MutSrtPair |
first(short first) |
static LSrtPair.MutSrtPair |
of(short a1,
short a2) |
void |
reset() |
short |
second() |
LSrtPair.MutSrtPair |
second(short second) |
LSrtPair.MutSrtPair |
setFirst(short first) |
LSrtPair.MutSrtPair |
setFirstIf(LBiSrtPredicate predicate,
short first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtPair.MutSrtPair |
setFirstIf(LSrtPredicate predicate,
short first)
Sets value if predicate(current) OR current::predicate is true
|
LSrtPair.MutSrtPair |
setFirstIf(short first,
LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtPair.MutSrtPair |
setFirstIfArg(short first,
LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtPair.MutSrtPair |
setFirstIfArgNotNull(R arg,
LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LSrtPair.MutSrtPair |
setSecond(short second) |
LSrtPair.MutSrtPair |
setSecondIf(LBiSrtPredicate predicate,
short second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtPair.MutSrtPair |
setSecondIf(LSrtPredicate predicate,
short second)
Sets value if predicate(current) OR current::predicate is true
|
LSrtPair.MutSrtPair |
setSecondIf(short second,
LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtPair.MutSrtPair |
setSecondIfArg(short second,
LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtPair.MutSrtPair |
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, waitargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LSrtPair.MutSrtPair of(short a1, short a2)
public static LSrtPair.MutSrtPair copyOf(LSrtPair tuple)
public short first()
public LSrtPair.MutSrtPair first(short first)
public short second()
public LSrtPair.MutSrtPair second(short second)
public LSrtPair.MutSrtPair setFirst(short first)
public LSrtPair.MutSrtPair setFirstIfArg(short first, LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtPair.MutSrtPair setFirstIfArgNotNull(R arg, LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtPair.MutSrtPair setFirstIf(LSrtPredicate predicate, short first)
Sets value if predicate(current) OR current::predicate is true
public LSrtPair.MutSrtPair setFirstIf(short first, LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtPair.MutSrtPair setFirstIf(LBiSrtPredicate predicate, short first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LSrtPair.MutSrtPair setSecond(short second)
public LSrtPair.MutSrtPair setSecondIfArg(short second, LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtPair.MutSrtPair setSecondIfArgNotNull(R arg, LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtPair.MutSrtPair setSecondIf(LSrtPredicate predicate, short second)
Sets value if predicate(current) OR current::predicate is true
public LSrtPair.MutSrtPair setSecondIf(short second, LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtPair.MutSrtPair 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.