public static final class LSrtIntPair.MutCompSrtIntPair extends LSrtIntPair.AbstractSrtIntPair implements LSrtIntPair.ComparableSrtIntPair
Mutable, 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 |
|---|
MutCompSrtIntPair(short a1,
int a2) |
| Modifier and Type | Method and Description |
|---|---|
static LSrtIntPair.MutCompSrtIntPair |
copyOf(LSrtIntPair tuple) |
short |
first() |
LSrtIntPair.MutCompSrtIntPair |
first(short first) |
static LSrtIntPair.MutCompSrtIntPair |
of(short a1,
int a2) |
void |
reset() |
int |
second() |
LSrtIntPair.MutCompSrtIntPair |
second(int second) |
LSrtIntPair.MutCompSrtIntPair |
setFirst(short first) |
LSrtIntPair.MutCompSrtIntPair |
setFirstIf(LBiSrtPredicate predicate,
short first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtIntPair.MutCompSrtIntPair |
setFirstIf(LSrtPredicate predicate,
short first)
Sets value if predicate(current) OR current::predicate is true
|
LSrtIntPair.MutCompSrtIntPair |
setFirstIf(short first,
LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtIntPair.MutCompSrtIntPair |
setFirstIfArg(short first,
LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtIntPair.MutCompSrtIntPair |
setFirstIfArgNotNull(R arg,
LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
|
LSrtIntPair.MutCompSrtIntPair |
setSecond(int second) |
LSrtIntPair.MutCompSrtIntPair |
setSecondIf(int second,
LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
|
LSrtIntPair.MutCompSrtIntPair |
setSecondIf(LBiIntPredicate predicate,
int second)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
|
LSrtIntPair.MutCompSrtIntPair |
setSecondIf(LIntPredicate predicate,
int second)
Sets value if predicate(current) OR current::predicate is true
|
LSrtIntPair.MutCompSrtIntPair |
setSecondIfArg(int second,
LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
|
<R> LSrtIntPair.MutCompSrtIntPair |
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, waitcompareToargEquals, argEquals, argHashCode, get, iterator, size, valueargEquals, argEquals, argHashCodepublic static LSrtIntPair.MutCompSrtIntPair of(short a1, int a2)
public static LSrtIntPair.MutCompSrtIntPair copyOf(LSrtIntPair tuple)
public short first()
first in interface LSrtIntPairfirst in interface LSrtSinglepublic LSrtIntPair.MutCompSrtIntPair first(short first)
public int second()
second in interface LSrtIntPairpublic LSrtIntPair.MutCompSrtIntPair second(int second)
public LSrtIntPair.MutCompSrtIntPair setFirst(short first)
public LSrtIntPair.MutCompSrtIntPair setFirstIfArg(short first, LSrtPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtIntPair.MutCompSrtIntPair setFirstIfArgNotNull(R arg, LToSrtFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtIntPair.MutCompSrtIntPair setFirstIf(LSrtPredicate predicate, short first)
Sets value if predicate(current) OR current::predicate is true
public LSrtIntPair.MutCompSrtIntPair setFirstIf(short first, LBiSrtPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtIntPair.MutCompSrtIntPair setFirstIf(LBiSrtPredicate predicate, short first)
Sets new value if predicate predicate(current, newValue) OR current::something(newValue) is true.
public LSrtIntPair.MutCompSrtIntPair setSecond(int second)
public LSrtIntPair.MutCompSrtIntPair setSecondIfArg(int second, LIntPredicate predicate)
Sets value if predicate(newValue) OR newValue::predicate is true
public <R> LSrtIntPair.MutCompSrtIntPair setSecondIfArgNotNull(R arg, LToIntFunction<R> func)
Sets value derived from non-null argument, only if argument is not null.
public LSrtIntPair.MutCompSrtIntPair setSecondIf(LIntPredicate predicate, int second)
Sets value if predicate(current) OR current::predicate is true
public LSrtIntPair.MutCompSrtIntPair setSecondIf(int second, LBiIntPredicate predicate)
Sets new value if predicate predicate(newValue, current) OR newValue::something(current) is true.
public LSrtIntPair.MutCompSrtIntPair 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.