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