| Package | Description |
|---|---|
| eu.lunisolar.magma.func.consumer.primitives.obj | |
| eu.lunisolar.magma.func.function.from | |
| eu.lunisolar.magma.func.predicate |
| Modifier and Type | Method and Description |
|---|---|
default LObjSrtConsumer<T2> |
LBiObjSrtConsumer.lShrink(LObjSrtFunction<T2,T1> left) |
static <T2,T1> LObjSrtConsumer<T2> |
LBiObjSrtConsumer.lShrinked(LObjSrtFunction<T2,T1> left,
LBiObjSrtConsumer<T1,T2> func) |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LObjSrtFunction.LSrtObjFunc<T,R>
Permutation of LObjSrtFunction for method references.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
LObjSrtFunction.LObjSrtFunctionSingle<T,R> |
| Modifier and Type | Method and Description |
|---|---|
default LObjSrtFunction<T,R> |
LObjSrtFunction.after(LConsumer<? super R> after) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.apply1st(LFunction<T,R> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.apply2nd(LSrtFunction<R> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default LObjSrtFunction<T,R> |
LObjSrtFunction.before(LObjSrtConsumer<? super T> before) |
default <V2,V3> LObjSrtFunction<V2,V3> |
LObjSrtFunction.cast()
Cast that replace generics.
|
static <V2,V3,T,R> |
LObjSrtFunction.cast(LObjSrtFunction<T,R> function)
Cast that replace generics.
|
default <V1> LObjSrtFunction<V1,R> |
LObjSrtFunction.compose(LFunction<? super V1,? extends T> before1,
LSrtUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static <V1,T,R> LObjSrtFunction<V1,R> |
LObjSrtFunction.composed(LFunction<? super V1,? extends T> before1,
LSrtUnaryOperator before2,
LObjSrtFunction<T,R> after) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.constant(R r)
Creates function that always returns the same value.
|
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.failSafe(LObjSrtFunction<T,R> func,
LObjSrtFunction<T,R> failSafe) |
default LObjSrtFunction<T,R> |
LObjSrtFunction.handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default LObjSrtFunction<T2,R> |
LBiObjSrtFunction.lShrink(LObjSrtFunction<T2,T1> left) |
default LObjSrtFunction<T2,R> |
LBiObjSrtFunction.lShrinkc(T1 a1) |
static <T2,R,T1> LObjSrtFunction<T2,R> |
LBiObjSrtFunction.lShrinked(LObjSrtFunction<T2,T1> left,
LBiObjSrtFunction<T1,T2,R> func) |
static <T2,R,T1> LObjSrtFunction<T2,R> |
LBiObjSrtFunction.lShrinkedc(T1 a1,
LBiObjSrtFunction<T1,T2,R> func) |
default LObjSrtFunction<T,R> |
LObjSrtFunction.nonNullable()
Converts to function that makes sure that the result is not null.
|
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.objSrtFunc(LObjSrtFunction<T,R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.objSrtFuncThrowing(ExF<Throwable> exF) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.objSrtFuncThrowing(String message,
ExMF<Throwable> exF) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.recursive(LFunction<LObjSrtFunction<T,R>,LObjSrtFunction<T,R>> selfLambda) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.safe()
Safe instance.
|
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.safe(LObjSrtFunction<T,R> other)
Safe wrapping.
|
default <V> LObjSrtFunction<T,V> |
LObjSrtFunction.then(LFunction<? super R,? extends V> after)
Combines two functions together in a order.
|
default LObjSrtFunction<T,R> |
LObjSrtFunction.trying(ExWF<RuntimeException> exF) |
default LObjSrtFunction<T,R> |
LObjSrtFunction.trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LObjSrtFunction<T,R> |
LObjSrtFunction.tryingThen(LFunction<Throwable,R> handler) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.uncurry(LFunction<T,LSrtFunction<R>> func) |
default LObjSrtFunction |
LObjSrtFunction.untyped()
Cast that removes generics.
|
LObjSrtFunction<T,R> |
LObjSrtFunction.LObjSrtFunctionSingle.value() |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> LSupplier<LObjSrtFunction<T,R>> |
LObjSrtFunction.safeSupplier()
Safe instance supplier.
|
static <T,R> LSupplier<LObjSrtFunction<T,R>> |
LObjSrtFunction.safeSupplier(LSupplier<LObjSrtFunction<T,R>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,R> R |
LObjSrtFunction.call(T a1,
short a2,
LObjSrtFunction<T,R> lambda) |
static <V2,V3,T,R> |
LObjSrtFunction.cast(LObjSrtFunction<T,R> function)
Cast that replace generics.
|
static <V1,T,R> LObjSrtFunction<V1,R> |
LObjSrtFunction.composed(LFunction<? super V1,? extends T> before1,
LSrtUnaryOperator before2,
LObjSrtFunction<T,R> after) |
static <V1,V2,T,R> |
LObjSrtFunction.composed(LFunction<? super V1,? extends T> before1,
LToSrtFunction<? super V2> before2,
LObjSrtFunction<T,R> after) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.failSafe(LObjSrtFunction<T,R> func,
LObjSrtFunction<T,R> failSafe) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.failSafe(LObjSrtFunction<T,R> func,
LObjSrtFunction<T,R> failSafe) |
default R |
LObjSrtFunction.failSafeApply(T a1,
short a2,
LObjSrtFunction<T,R> failSafe) |
static <T,R> R |
LObjSrtFunction.failSafeApply(T a1,
short a2,
LObjSrtFunction<T,R> func,
LObjSrtFunction<T,R> failSafe) |
static <T,R> R |
LObjSrtFunction.failSafeApply(T a1,
short a2,
LObjSrtFunction<T,R> func,
LObjSrtFunction<T,R> failSafe) |
static <T,R> void |
LObjSrtFunction.fromTill(int min_i,
int max_i,
T a1,
short a2,
LObjSrtFunction<T,R> func)
From-To.
|
static <T,R> void |
LObjSrtFunction.fromTo(int min_i,
int max_i,
T a1,
short a2,
LObjSrtFunction<T,R> func)
From-To.
|
static <T,R> R |
LObjSrtFunction.handlingApply(T a1,
short a2,
LObjSrtFunction<T,R> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default LObjSrtFunction<T2,R> |
LBiObjSrtFunction.lShrink(LObjSrtFunction<T2,T1> left) |
static <T2,R,T1> LObjSrtFunction<T2,R> |
LBiObjSrtFunction.lShrinked(LObjSrtFunction<T2,T1> left,
LBiObjSrtFunction<T1,T2,R> func) |
static <R,T> LSrtFunction<R> |
LObjSrtFunction.lShrinked(LSrtFunction<T> left,
LObjSrtFunction<T,R> func) |
static <R,T> LSrtFunction<R> |
LObjSrtFunction.lShrinkedc(T a1,
LObjSrtFunction<T,R> func) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.objSrtFunc(LObjSrtFunction<T,R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T,R> LFunction<T,R> |
LObjSrtFunction.rShrinked(LToSrtFunction<T> right,
LObjSrtFunction<T,R> func) |
static <T,R> LFunction<T,R> |
LObjSrtFunction.rShrinkedc(short a2,
LObjSrtFunction<T,R> func) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.safe(LObjSrtFunction<T,R> other)
Safe wrapping.
|
static <T,R> void |
LObjSrtFunction.times(int max_i,
T a1,
short a2,
LObjSrtFunction<T,R> func)
From-To.
|
static <T,R> R |
LObjSrtFunction.tryApply(T a1,
short a2,
LObjSrtFunction<T,R> func) |
static <T,R> R |
LObjSrtFunction.tryApply(T a1,
short a2,
LObjSrtFunction<T,R> func,
ExWF<RuntimeException> exF) |
static <T,R> R |
LObjSrtFunction.tryApply(T a1,
short a2,
LObjSrtFunction<T,R> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T,R> R |
LObjSrtFunction.tryApplyThen(T a1,
short a2,
LObjSrtFunction<T,R> func,
LFunction<Throwable,R> handler) |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.recursive(LFunction<LObjSrtFunction<T,R>,LObjSrtFunction<T,R>> selfLambda) |
static <T,R> LObjSrtFunction<T,R> |
LObjSrtFunction.recursive(LFunction<LObjSrtFunction<T,R>,LObjSrtFunction<T,R>> selfLambda) |
static <T,R> LSupplier<LObjSrtFunction<T,R>> |
LObjSrtFunction.safeSupplier(LSupplier<LObjSrtFunction<T,R>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
default <V> LObjSrtFunction<T,V> |
LObjSrtPredicate.boolToObjSrtFunc(LBoolFunction<? extends V> after)
Combines two functions together in a order.
|
| Modifier and Type | Method and Description |
|---|---|
default LObjSrtPredicate<T2> |
LBiObjSrtPredicate.lShrink(LObjSrtFunction<T2,T1> left) |
static <T2,T1> LObjSrtPredicate<T2> |
LBiObjSrtPredicate.lShrinked(LObjSrtFunction<T2,T1> left,
LBiObjSrtPredicate<T1,T2> func) |
Copyright © 2019. All rights reserved.