@FunctionalInterface public interface LTieSrtFunction<T> extends MetaFunction, MetaInterface.NonThrowing, TieFunction<T,aType.aShort>, Codomain<aType.aInt>, Domain3<aType.a<T>,aType.aInt,aType.aShort>
Non-throwing functional interface (lambda) LTieSrtFunction for Java 8.
Type: function
Domain (lvl: 3): T a1,int a2,short a3
Co-domain: int
Special case of function that corresponds to TIE consumer with return integer value.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LTieSrtFunction.LIntObjSrtToIntFunc<T>
Permutation of LTieSrtFunction for method references.
|
static interface |
LTieSrtFunction.LIntSrtObjToIntFunc<T>
Permutation of LTieSrtFunction for method references.
|
static interface |
LTieSrtFunction.LObjSrtIntToIntFunc<T>
Permutation of LTieSrtFunction for method references.
|
static interface |
LTieSrtFunction.LSrtIntObjToIntFunc<T>
Permutation of LTieSrtFunction for method references.
|
static interface |
LTieSrtFunction.LSrtObjIntToIntFunc<T>
Permutation of LTieSrtFunction for method references.
|
static class |
LTieSrtFunction.LTieSrtFunctionSingle<T> |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static <T> LTieSrtFunction<T> |
apply1stAsInt(LToIntFunction<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LTieSrtFunction<T> |
apply2ndAsInt(LIntUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
static <T> LTieSrtFunction<T> |
apply3rdAsInt(LSrtToIntFunction func)
Captures single parameter function into this interface where only 3rd parameter will be used.
|
default int |
applyAsInt(T a1,
int a2,
short a3) |
default int |
applyAsInt(T a1,
int a2,
short a3,
ExWF<RuntimeException> exF) |
default int |
applyAsInt(T a1,
int a2,
short a3,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default int |
applyAsIntThen(T a1,
int a2,
short a3,
LToIntFunction<Throwable> handler) |
int |
applyAsIntX(T a1,
int a2,
short a3)
Implement this, but call applyAsInt(T a1,int a2,short a3)
|
static <T> int |
call(T a1,
int a2,
short a3,
LTieSrtFunction<T> lambda) |
default LIntSupplier |
capture(T a1,
int a2,
short a3)
Captures arguments but delays the evaluation.
|
default <V2> LTieSrtFunction<V2> |
cast()
Cast that replace generics.
|
static <V2,T> LTieSrtFunction<V2> |
cast(LTieSrtFunction<T> function)
Cast that replace generics.
|
default <V1> LTieSrtFunction<V1> |
compose(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2,
LSrtUnaryOperator before3)
Allows to manipulate the domain of the function.
|
static <V1,T> LTieSrtFunction<V1> |
composed(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2,
LSrtUnaryOperator before3,
LTieSrtFunction<T> after) |
static <V1,V2,V3,T> |
composed(LFunction<? super V1,? extends T> before1,
LToIntFunction<? super V2> before2,
LToSrtFunction<? super V3> before3,
LTieSrtFunction<T> after) |
static <T> LTieSrtFunction<T> |
constant(int r)
Creates function that always returns the same value.
|
static <T> LTieSrtFunction<T> |
failSafe(LTieSrtFunction<T> func,
LTieSrtFunction<T> failSafe) |
default int |
failSafeApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> failSafe) |
static <T> int |
failSafeApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
LTieSrtFunction<T> failSafe) |
default <C1,C2,C3> void |
forEach(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static <T> void |
fromTill(int min_a2,
int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To.
|
static <T> void |
fromTo(int min_a2,
int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default <SRC> int |
genericTieForEach(int sStart,
int sEnd,
int tStart,
T trg1,
SRC src3,
OiFunction<SRC,aType.aShort> srcAcc3)
ITERATION: TIE_CONSUMER_GEN: FOR, [SourcePurpose{arg=int sStart, type=CONST}, SourcePurpose{arg=int sEnd, type=CONST}, SourcePurpose{arg=int tStart, type=CONST}, SourcePurpose{arg=T trg1, type=CONST}, SourcePurpose{arg=short a3, type=TIE_SOURCE}, SourcePurpose{arg=short a3, type=TIE_GEN_SUPPLIER}]
|
default LTieSrtFunction<T> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default int |
handlingApplyAsInt(T a1,
int a2,
short a3,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <T> int |
handlingApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <T> LTieSrtFunction.LIntObjSrtToIntFunc<T> |
intObjSrtToIntFunc(LTieSrtFunction.LIntObjSrtToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> LTieSrtFunction.LIntSrtObjToIntFunc<T> |
intSrtObjToIntFunc(LTieSrtFunction.LIntSrtObjToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <C1,C2,C3,I3> |
iterate(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,C2,I2,C3> |
iterate(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,C2,I2,C3,I3> |
iterate(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,C3> |
iterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,C3,I3> |
iterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,I2,C3> |
iterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,I2,C3,I3> |
iterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default int |
nestingApplyAsInt(T a1,
int a2,
short a3)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default int |
nonNullApplyAsInt(T a1,
int a2,
short a3)
Just to mirror the method: Ensures the result is not null
|
static <T,C3> T |
ntiForEach(LIntFunction<T> trgFactory1,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LTieSrtFunction<? super T> consumer)
ITERATION: TARGETED_INDEXED_FOR_EACH_NEW: FOR, [SourcePurpose{arg=T trg1, type=SIZE_FACTORY}, SourcePurpose{arg=short a3, type=IA}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
|
static <T,C3,I3> T |
ntiIterate(LSupplier<T> source1,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LTieSrtFunction<? super T> consumer)
ITERATION: TARGETED_INDEXED_ITERATE_NEW: WHILE, [SourcePurpose{arg=T trg1, type=SUPPLIER}, SourcePurpose{arg=short a3, type=SA}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
|
static <T> LTieSrtFunction.LObjSrtIntToIntFunc<T> |
objSrtIntToIntFunc(LTieSrtFunction.LObjSrtIntToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> int |
produceInt(int a2,
short a3,
T a1)
Does nothing (LTieSrtFunction.LIntSrtObjToIntFunc) Function
|
static <T> int |
produceInt(int a2,
T a1,
short a3)
Does nothing (LTieSrtFunction.LIntObjSrtToIntFunc) Function
|
static <T> int |
produceInt(short a3,
int a2,
T a1)
Does nothing (LTieSrtFunction.LSrtIntObjToIntFunc) Function
|
static <T> int |
produceInt(short a3,
T a1,
int a2)
Does nothing (LTieSrtFunction.LSrtObjIntToIntFunc) Function
|
static <T> int |
produceInt(T a1,
int a2,
short a3)
Does nothing (LTieSrtFunction) Function
|
static <T> int |
produceInt(T a1,
short a3,
int a2)
Does nothing (LTieSrtFunction.LObjSrtIntToIntFunc) Function
|
static <T> LTieSrtFunction<T> |
recursive(LFunction<LTieSrtFunction<T>,LTieSrtFunction<T>> selfLambda) |
static <T> LTieSrtFunction<T> |
safe()
Safe instance.
|
static <T> LTieSrtFunction<T> |
safe(LTieSrtFunction<T> other)
Safe wrapping.
|
static <T> LSupplier<LTieSrtFunction<T>> |
safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LTieSrtFunction<T>> |
safeSupplier(LSupplier<LTieSrtFunction<T>> supplier)
Safe supplier.
|
default int |
shovingApplyAsInt(T a1,
int a2,
short a3)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static <T> LTieSrtFunction.LSrtIntObjToIntFunc<T> |
srtIntObjToIntFunc(LTieSrtFunction.LSrtIntObjToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> LTieSrtFunction.LSrtObjIntToIntFunc<T> |
srtObjIntToIntFunc(LTieSrtFunction.LSrtObjIntToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LObjIntSrtFunction<T,V> |
then(LIntFunction<? extends V> after)
Combines two functions together in a order.
|
default LObjIntSrtPredicate<T> |
thenToBool(LIntPredicate after)
Combines two functions together in a order.
|
default LTieSrtFunction<T> |
thenToInt(LIntUnaryOperator after)
Combines two functions together in a order.
|
static <T,SRC> int |
tieForEach(int sStart,
int sEnd,
int tStart,
T trg1,
SRC src3,
LOiToSrtFunction<SRC> srcAcc3,
LTieSrtFunction<? super T> consumer)
ITERATION: TIE_CONSUMER: FOR, [SourcePurpose{arg=int sStart, type=CONST}, SourcePurpose{arg=int sEnd, type=CONST}, SourcePurpose{arg=int tStart, type=CONST}, SourcePurpose{arg=T trg1, type=CONST}, SourcePurpose{arg=short a3, type=TIE_SOURCE}, SourcePurpose{arg=short a3, type=TIE_SUPPLIER}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
|
static <T,SRC> int |
tieForEach(int sStart,
int tStart,
T trg1,
SRC src3,
LPredicate<SRC> srcTest3,
LToSrtFunction<SRC> srcAcc3,
LTieSrtFunction<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with TIE: ‘target’, index, element).
|
static <T,C3> int |
tieForEach(T trg1,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LTieSrtFunction<? super T> consumer)
ITERATION: TIE_CONSUMER_SHORT: FOR, [SourcePurpose{arg=T trg1, type=CONST}, SourcePurpose{arg=short a3, type=IA}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
|
static <T,C3,I3> int |
tieIterate(T trg1,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LTieSrtFunction<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with TIE: ‘target’, index, element).
|
static <T> LTieSrtFunction<T> |
tieSrtFunc(LTieSrtFunction<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2,V3> LToIntTriFunction<V1,V2,V3> |
tieSrtFuncCompose(LFunction<? super V1,? extends T> before1,
LToIntFunction<? super V2> before2,
LToSrtFunction<? super V3> before3)
Allows to manipulate the domain of the function.
|
static <T> LTieSrtFunction<T> |
tieSrtFuncThrowing(ExF<Throwable> exF) |
static <T> LTieSrtFunction<T> |
tieSrtFuncThrowing(String message,
ExMF<Throwable> exF) |
static <T,C3> T |
tiForEach(T trg1,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LTieSrtFunction<? super T> consumer)
ITERATION: TARGETED_INDEXED_FOR_EACH: FOR, [SourcePurpose{arg=T trg1, type=CONST}, SourcePurpose{arg=short a3, type=IA}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
|
static <T,C3,I3> T |
tiIterate(T trg1,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LTieSrtFunction<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with TIE: ‘target’, index, element).
|
static <T> void |
times(int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To.
|
static <T> int |
tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func) |
static <T> int |
tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
ExWF<RuntimeException> exF) |
static <T> int |
tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> int |
tryApplyAsIntThen(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
LToIntFunction<Throwable> handler) |
default LTieSrtFunction<T> |
trying(ExWF<RuntimeException> exF) |
default LTieSrtFunction<T> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LTieSrtFunction<T> |
tryingThen(LToIntFunction<Throwable> handler) |
default int |
tupleApplyAsInt(LObjIntSrtTriple<T> args) |
static <T> LTieSrtFunction<T> |
uncurry(LFunction<T,LIntFunction<LSrtToIntFunction>> func) |
default LTieSrtFunction |
untyped()
Cast that removes generics.
|
isThrowingisFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierstatic final String DESCRIPTION
default int applyAsInt(T a1, int a2, short a3)
int applyAsIntX(T a1, int a2, short a3) throws Throwable
Implement this, but call applyAsInt(T a1,int a2,short a3)
Throwabledefault int tupleApplyAsInt(LObjIntSrtTriple<T> args)
default int handlingApplyAsInt(T a1, int a2, short a3, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LTieSrtFunction<T> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default int applyAsInt(T a1, int a2, short a3, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LTieSrtFunction<T> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default int applyAsInt(T a1, int a2, short a3, @Nonnull ExWF<RuntimeException> exF)
default LTieSrtFunction<T> trying(@Nonnull ExWF<RuntimeException> exF)
default int applyAsIntThen(T a1, int a2, short a3, @Nonnull LToIntFunction<Throwable> handler)
default LTieSrtFunction<T> tryingThen(@Nonnull LToIntFunction<Throwable> handler)
default int nestingApplyAsInt(T a1, int a2, short a3)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default int shovingApplyAsInt(T a1, int a2, short a3)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <T> int handlingApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <T> int tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func)
static <T> int tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <T> int tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
@Nonnull
ExWF<RuntimeException> exF)
static <T> int tryApplyAsIntThen(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
@Nonnull
LToIntFunction<Throwable> handler)
default int failSafeApplyAsInt(T a1, int a2, short a3, @Nonnull LTieSrtFunction<T> failSafe)
static <T> int failSafeApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
@Nonnull
LTieSrtFunction<T> failSafe)
static <T> LTieSrtFunction<T> failSafe(LTieSrtFunction<T> func, @Nonnull LTieSrtFunction<T> failSafe)
default int nonNullApplyAsInt(T a1, int a2, short a3)
Just to mirror the method: Ensures the result is not null
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic <T> void fromTo(int min_a2,
int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> void fromTill(int min_a2,
int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> void times(int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> LTieSrtFunction<T> uncurry(LFunction<T,LIntFunction<LSrtToIntFunction>> func)
default LTieSrtFunction untyped()
Cast that removes generics.
default <V2> LTieSrtFunction<V2> cast()
Cast that replace generics.
static <V2,T> LTieSrtFunction<V2> cast(LTieSrtFunction<T> function)
Cast that replace generics.
default LIntSupplier capture(T a1, int a2, short a3)
Captures arguments but delays the evaluation.
static <T> LTieSrtFunction<T> constant(int r)
Creates function that always returns the same value.
@Nonnull static <T> LTieSrtFunction<T> apply1stAsInt(@Nonnull LToIntFunction<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static <T> LTieSrtFunction<T> apply2ndAsInt(@Nonnull LIntUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static <T> LTieSrtFunction<T> apply3rdAsInt(@Nonnull LSrtToIntFunction func)
Captures single parameter function into this interface where only 3rd parameter will be used.
@Nonnull static <T> LTieSrtFunction<T> tieSrtFunc(@Nonnull LTieSrtFunction<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <T> LTieSrtFunction<T> recursive(@Nonnull LFunction<LTieSrtFunction<T>,LTieSrtFunction<T>> selfLambda)
@Nonnull static <T> LTieSrtFunction<T> tieSrtFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <T> LTieSrtFunction<T> tieSrtFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static <T> LTieSrtFunction.LObjSrtIntToIntFunc<T> objSrtIntToIntFunc(@Nonnull LTieSrtFunction.LObjSrtIntToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <T> LTieSrtFunction.LIntObjSrtToIntFunc<T> intObjSrtToIntFunc(@Nonnull LTieSrtFunction.LIntObjSrtToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <T> LTieSrtFunction.LIntSrtObjToIntFunc<T> intSrtObjToIntFunc(@Nonnull LTieSrtFunction.LIntSrtObjToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <T> LTieSrtFunction.LSrtObjIntToIntFunc<T> srtObjIntToIntFunc(@Nonnull LTieSrtFunction.LSrtObjIntToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <T> LTieSrtFunction.LSrtIntObjToIntFunc<T> srtIntObjToIntFunc(@Nonnull LTieSrtFunction.LSrtIntObjToIntFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static <T> int call(T a1,
int a2,
short a3,
@Nonnull
LTieSrtFunction<T> lambda)
@Nonnull static <T> LTieSrtFunction<T> safe()
Safe instance. That always returns the same value (as produceInt).
@Nonnull static <T> LSupplier<LTieSrtFunction<T>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <T> LTieSrtFunction<T> safe(@Nullable LTieSrtFunction<T> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <T> LSupplier<LTieSrtFunction<T>> safeSupplier(@Nullable LSupplier<LTieSrtFunction<T>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default <V1> LTieSrtFunction<V1> compose(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LIntUnaryOperator before2, @Nonnull LSrtUnaryOperator before3)
Allows to manipulate the domain of the function.
static <V1,T> LTieSrtFunction<V1> composed(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LIntUnaryOperator before2, @Nonnull LSrtUnaryOperator before3, LTieSrtFunction<T> after)
@Nonnull default <V1,V2,V3> LToIntTriFunction<V1,V2,V3> tieSrtFuncCompose(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LToIntFunction<? super V2> before2, @Nonnull LToSrtFunction<? super V3> before3)
Allows to manipulate the domain of the function.
static <V1,V2,V3,T> LToIntTriFunction<V1,V2,V3> composed(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LToIntFunction<? super V2> before2, @Nonnull LToSrtFunction<? super V3> before3, LTieSrtFunction<T> after)
@Nonnull default <V> LObjIntSrtFunction<T,V> then(@Nonnull LIntFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LTieSrtFunction<T> thenToInt(@Nonnull LIntUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LObjIntSrtPredicate<T> thenToBool(@Nonnull LIntPredicate after)
Combines two functions together in a order.
static <T> int produceInt(T a1,
int a2,
short a3)
Does nothing (LTieSrtFunction) Function
static <T> int produceInt(T a1,
short a3,
int a2)
Does nothing (LTieSrtFunction.LObjSrtIntToIntFunc) Function
static <T> int produceInt(int a2,
T a1,
short a3)
Does nothing (LTieSrtFunction.LIntObjSrtToIntFunc) Function
static <T> int produceInt(int a2,
short a3,
T a1)
Does nothing (LTieSrtFunction.LIntSrtObjToIntFunc) Function
static <T> int produceInt(short a3,
T a1,
int a2)
Does nothing (LTieSrtFunction.LSrtObjIntToIntFunc) Function
static <T> int produceInt(short a3,
int a2,
T a1)
Does nothing (LTieSrtFunction.LSrtIntObjToIntFunc) Function
default <SRC> int genericTieForEach(int sStart,
int sEnd,
int tStart,
T trg1,
SRC src3,
OiFunction<SRC,aType.aShort> srcAcc3)
ITERATION: TIE_CONSUMER_GEN: FOR, [SourcePurpose{arg=int sStart, type=CONST}, SourcePurpose{arg=int sEnd, type=CONST}, SourcePurpose{arg=int tStart, type=CONST}, SourcePurpose{arg=T trg1, type=CONST}, SourcePurpose{arg=short a3, type=TIE_SOURCE}, SourcePurpose{arg=short a3, type=TIE_GEN_SUPPLIER}]
genericTieForEach in interface TieFunction<T,aType.aShort>static <T,C3> T tiForEach(T trg1,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LTieSrtFunction<? super T> consumer)
ITERATION: TARGETED_INDEXED_FOR_EACH: FOR, [SourcePurpose{arg=T trg1, type=CONST}, SourcePurpose{arg=short a3, type=IA}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
static <T,C3> T ntiForEach(LIntFunction<T> trgFactory1, IndexedRead<C3,aType.aShort> ia3, C3 source3, LTieSrtFunction<? super T> consumer)
ITERATION: TARGETED_INDEXED_FOR_EACH_NEW: FOR, [SourcePurpose{arg=T trg1, type=SIZE_FACTORY}, SourcePurpose{arg=short a3, type=IA}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
static <T,C3> int tieForEach(T trg1,
IndexedRead<C3,aType.aShort> ia3,
C3 source3,
LTieSrtFunction<? super T> consumer)
ITERATION: TIE_CONSUMER_SHORT: FOR, [SourcePurpose{arg=T trg1, type=CONST}, SourcePurpose{arg=short a3, type=IA}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
static <T,SRC> int tieForEach(int sStart,
int sEnd,
int tStart,
T trg1,
SRC src3,
LOiToSrtFunction<SRC> srcAcc3,
LTieSrtFunction<? super T> consumer)
ITERATION: TIE_CONSUMER: FOR, [SourcePurpose{arg=int sStart, type=CONST}, SourcePurpose{arg=int sEnd, type=CONST}, SourcePurpose{arg=int tStart, type=CONST}, SourcePurpose{arg=T trg1, type=CONST}, SourcePurpose{arg=short a3, type=TIE_SOURCE}, SourcePurpose{arg=short a3, type=TIE_SUPPLIER}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
static <T,SRC> int tieForEach(int sStart,
int tStart,
T trg1,
SRC src3,
LPredicate<SRC> srcTest3,
LToSrtFunction<SRC> srcAcc3,
LTieSrtFunction<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with TIE: ‘target’, index, element). First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
static <T,C3,I3> int tieIterate(T trg1,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LTieSrtFunction<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with TIE: ‘target’, index, element). First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
static <T,C3,I3> T tiIterate(T trg1,
SequentialRead<C3,I3,aType.aShort> sa3,
C3 source3,
LTieSrtFunction<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with TIE: ‘target’, index, element). First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
static <T,C3,I3> T ntiIterate(LSupplier<T> source1, SequentialRead<C3,I3,aType.aShort> sa3, C3 source3, LTieSrtFunction<? super T> consumer)
ITERATION: TARGETED_INDEXED_ITERATE_NEW: WHILE, [SourcePurpose{arg=T trg1, type=SUPPLIER}, SourcePurpose{arg=short a3, type=SA}, SourcePurpose{arg=LTieSrtFunction<? super T> consumer, type=CONST}]
default <C1,C2,C3> void forEach(IndexedRead<C1,aType.a<T>> ia1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, IndexedRead<C3,aType.aShort> ia3, C3 source3, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,C3> void iterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, IndexedRead<C3,aType.aShort> ia3, C3 source3, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,C2,I2,C3> void iterate(IndexedRead<C1,aType.a<T>> ia1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, IndexedRead<C3,aType.aShort> ia3, C3 source3, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,I2,C3> void iterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, IndexedRead<C3,aType.aShort> ia3, C3 source3, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,C2,C3,I3> void iterate(IndexedRead<C1,aType.a<T>> ia1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, SequentialRead<C3,I3,aType.aShort> sa3, C3 source3, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,C3,I3> void iterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, SequentialRead<C3,I3,aType.aShort> sa3, C3 source3, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,C2,I2,C3,I3> void iterate(IndexedRead<C1,aType.a<T>> ia1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, SequentialRead<C3,I3,aType.aShort> sa3, C3 source3, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,I2,C3,I3> void iterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, SequentialRead<C3,I3,aType.aShort> sa3, C3 source3, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.