public static final class LSrtIntPair.MutSrtIntPair extends LSrtIntPair.AbstractSrtIntPair
Mutable, non-comparable tuple.
LSrtIntPair.AbstractSrtIntPair, LSrtIntPair.ComparableSrtIntPair, LSrtIntPair.ImmCompSrtIntPair, LSrtIntPair.ImmSrtIntPair, LSrtIntPair.MutCompSrtIntPair, LSrtIntPair.MutSrtIntPairLSrtSingle.AbstractSrtSingle, LSrtSingle.ComparableSrtSingle, LSrtSingle.ImmCompSrtSingle, LSrtSingle.ImmSrtSingle, LSrtSingle.MutCompSrtSingle, LSrtSingle.MutSrtSingleLTuple.VoidSIZE| Constructor and Description |
|---|
MutSrtIntPair(short a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LSrtIntPair.MutSrtIntPair |
copyOf(LSrtIntPair tuple) |
short |
first() |
LSrtIntPair.MutSrtIntPair |
first(short first) |
static LSrtIntPair.MutSrtIntPair |
of(short a1,
int a2) |
void |
reset() |
int |
second() |
LSrtIntPair.MutSrtIntPair |
second(int second) |
LSrtIntPair.MutSrtIntPair |
setFirst(short first) |
LSrtIntPair.MutSrtIntPair |
setFirstIf(LBiSrtPredicate predicate,
short first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtIntPair.MutSrtIntPair |
setFirstIf(LSrtPredicate predicate,
short first)
Sets value if predicate(current) OR current::predicate is true
|
LSrtIntPair.MutSrtIntPair |
setFirstIf(short first,
LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtIntPair.MutSrtIntPair |
setFirstIfArg(short first,
LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtIntPair.MutSrtIntPair |
setFirstIfArgNotNull(R arg,
LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LSrtIntPair.MutSrtIntPair |
setSecond(int second) |
LSrtIntPair.MutSrtIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtIntPair.MutSrtIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtIntPair.MutSrtIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LSrtIntPair.MutSrtIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtIntPair.MutSrtIntPair |
setSecondIfArgNotNull(R arg,
LToIntFunction<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 LSrtIntPair.MutSrtIntPair of(short a1, int a2)
public static LSrtIntPair.MutSrtIntPair copyOf(LSrtIntPair tuple)
public short first()
public LSrtIntPair.MutSrtIntPair first(short first)
public int second()
public LSrtIntPair.MutSrtIntPair second(int second)
public LSrtIntPair.MutSrtIntPair setFirst(short first)
public LSrtIntPair.MutSrtIntPair setFirstIfArg(short first, LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtIntPair.MutSrtIntPair setFirstIfArgNotNull(R arg, LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtIntPair.MutSrtIntPair setFirstIf(LSrtPredicate predicate, short first)
Sets value if predicate(current) OR current::predicate is true
public LSrtIntPair.MutSrtIntPair setFirstIf(short first, LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtIntPair.MutSrtIntPair setFirstIf(LBiSrtPredicate predicate, short first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LSrtIntPair.MutSrtIntPair setSecond(int second)
public LSrtIntPair.MutSrtIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtIntPair.MutSrtIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtIntPair.MutSrtIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LSrtIntPair.MutSrtIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtIntPair.MutSrtIntPair setSecondIf(LBiIntPredicate predicate, int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public void reset()
Copyright © 2019. All rights reserved.