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