| Package | Description |
|---|---|
| eu.lunisolar.magma.func.consumer.primitives.obj | |
| eu.lunisolar.magma.func.function.from | |
| eu.lunisolar.magma.func.function.to | |
| eu.lunisolar.magma.func.predicate |
| Modifier and Type | Method and Description |
|---|---|
default LTieSrtFunction<T> |
LTieSrtConsumer.toTieFunction() |
| Modifier and Type | Method and Description |
|---|---|
default LTieSrtFunction<T> |
LObjIntSrtFunction.thenToInt(LToIntFunction<? super R> after)
Combines two functions together in a order.
|
| 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.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
LTieSrtFunction.LTieSrtFunctionSingle<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> LTieSrtFunction<T> |
LTieSrtFunction.apply1stAsInt(LToIntFunction<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LTieSrtFunction<T> |
LTieSrtFunction.apply2ndAsInt(LIntUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
static <T> LTieSrtFunction<T> |
LTieSrtFunction.apply3rdAsInt(LSrtToIntFunction func)
Captures single parameter function into this interface where only 3rd parameter will be used.
|
default <V2> LTieSrtFunction<V2> |
LTieSrtFunction.cast()
Cast that replace generics.
|
static <V2,T> LTieSrtFunction<V2> |
LTieSrtFunction.cast(LTieSrtFunction<T> function)
Cast that replace generics.
|
default <V1> LTieSrtFunction<V1> |
LTieSrtFunction.compose(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2,
LSrtUnaryOperator before3)
Allows to manipulate the domain of the function.
|
static <V1,T> LTieSrtFunction<V1> |
LTieSrtFunction.composed(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2,
LSrtUnaryOperator before3,
LTieSrtFunction<T> after) |
static <T> LTieSrtFunction<T> |
LTieSrtFunction.constant(int r)
Creates function that always returns the same value.
|
static <T> LTieSrtFunction<T> |
LTieSrtFunction.failSafe(LTieSrtFunction<T> func,
LTieSrtFunction<T> failSafe) |
default LTieSrtFunction<T> |
LTieSrtFunction.handling(HandlingInstructions<Throwable,RuntimeException> handling) |
static <T> LTieSrtFunction<T> |
LTieSrtFunction.recursive(LFunction<LTieSrtFunction<T>,LTieSrtFunction<T>> selfLambda) |
static <T> LTieSrtFunction<T> |
LTieSrtFunction.safe()
Safe instance.
|
static <T> LTieSrtFunction<T> |
LTieSrtFunction.safe(LTieSrtFunction<T> other)
Safe wrapping.
|
default LTieSrtFunction<T> |
LTieSrtFunction.thenToInt(LIntUnaryOperator after)
Combines two functions together in a order.
|
static <T> LTieSrtFunction<T> |
LTieSrtFunction.tieSrtFunc(LTieSrtFunction<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<T> |
LTieSrtFunction.tieSrtFuncThrowing(ExF<Throwable> exF) |
static <T> LTieSrtFunction<T> |
LTieSrtFunction.tieSrtFuncThrowing(String message,
ExMF<Throwable> exF) |
default LTieSrtFunction<T> |
LTieSrtFunction.trying(ExWF<RuntimeException> exF) |
default LTieSrtFunction<T> |
LTieSrtFunction.trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LTieSrtFunction<T> |
LTieSrtFunction.tryingThen(LToIntFunction<Throwable> handler) |
static <T> LTieSrtFunction<T> |
LTieSrtFunction.uncurry(LFunction<T,LIntFunction<LSrtToIntFunction>> func) |
default LTieSrtFunction |
LTieSrtFunction.untyped()
Cast that removes generics.
|
LTieSrtFunction<T> |
LTieSrtFunction.LTieSrtFunctionSingle.value() |
| Modifier and Type | Method and Description |
|---|---|
static <T> LSupplier<LTieSrtFunction<T>> |
LTieSrtFunction.safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LTieSrtFunction<T>> |
LTieSrtFunction.safeSupplier(LSupplier<LTieSrtFunction<T>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> int |
LTieSrtFunction.call(T a1,
int a2,
short a3,
LTieSrtFunction<T> lambda) |
static <V2,T> LTieSrtFunction<V2> |
LTieSrtFunction.cast(LTieSrtFunction<T> function)
Cast that replace generics.
|
static <V1,T> LTieSrtFunction<V1> |
LTieSrtFunction.composed(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2,
LSrtUnaryOperator before3,
LTieSrtFunction<T> after) |
static <V1,V2,V3,T> |
LTieSrtFunction.composed(LFunction<? super V1,? extends T> before1,
LToIntFunction<? super V2> before2,
LToSrtFunction<? super V3> before3,
LTieSrtFunction<T> after) |
static <T> LTieSrtFunction<T> |
LTieSrtFunction.failSafe(LTieSrtFunction<T> func,
LTieSrtFunction<T> failSafe) |
static <T> LTieSrtFunction<T> |
LTieSrtFunction.failSafe(LTieSrtFunction<T> func,
LTieSrtFunction<T> failSafe) |
default int |
LTieSrtFunction.failSafeApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> failSafe) |
static <T> int |
LTieSrtFunction.failSafeApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
LTieSrtFunction<T> failSafe) |
static <T> int |
LTieSrtFunction.failSafeApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
LTieSrtFunction<T> failSafe) |
static <T> void |
LTieSrtFunction.fromTill(int min_a2,
int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To.
|
static <T> void |
LTieSrtFunction.fromTo(int min_a2,
int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To.
|
static <T> int |
LTieSrtFunction.handlingApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <T,C3> T |
LTieSrtFunction.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 |
LTieSrtFunction.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<T> |
LTieSrtFunction.safe(LTieSrtFunction<T> other)
Safe wrapping.
|
static <T,SRC> int |
LTieSrtFunction.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 |
LTieSrtFunction.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 |
LTieSrtFunction.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 |
LTieSrtFunction.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> |
LTieSrtFunction.tieSrtFunc(LTieSrtFunction<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T,C3> T |
LTieSrtFunction.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 |
LTieSrtFunction.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 |
LTieSrtFunction.times(int max_a2,
T a1,
short a3,
LTieSrtFunction<T> func)
From-To.
|
static <T> int |
LTieSrtFunction.tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func) |
static <T> int |
LTieSrtFunction.tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
ExWF<RuntimeException> exF) |
static <T> int |
LTieSrtFunction.tryApplyAsInt(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> int |
LTieSrtFunction.tryApplyAsIntThen(T a1,
int a2,
short a3,
LTieSrtFunction<T> func,
LToIntFunction<Throwable> handler) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LTieSrtFunction<T> |
LTieSrtFunction.recursive(LFunction<LTieSrtFunction<T>,LTieSrtFunction<T>> selfLambda) |
static <T> LTieSrtFunction<T> |
LTieSrtFunction.recursive(LFunction<LTieSrtFunction<T>,LTieSrtFunction<T>> selfLambda) |
static <T> LSupplier<LTieSrtFunction<T>> |
LTieSrtFunction.safeSupplier(LSupplier<LTieSrtFunction<T>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
default LTieSrtFunction<T> |
LObjIntSrtPredicate.boolToTieSrtFunc(LBoolToIntFunction after)
Combines two functions together in a order.
|
| Modifier and Type | Method and Description |
|---|---|
default <V> int |
LSrtPredicate.doIf(V a1,
int a2,
short a3,
LTieSrtFunction<? super V> consumer) |
default <V> int |
LSrtIntPredicate.doIf(V a1,
int a2,
short a3,
LTieSrtFunction<? super V> consumer) |
Copyright © 2019. All rights reserved.