| Package | Description |
|---|---|
| eu.lunisolar.magma.func.operator.binary | |
| eu.lunisolar.magma.func.operator.ternary | |
| eu.lunisolar.magma.func.operator.unary |
| Modifier and Type | Method and Description |
|---|---|
default LUnaryOperator<T> |
LBinaryOperator.lShrink(LUnaryOperator<T> left) |
default LUnaryOperator<T> |
LBinaryOperator.lShrinkc(T a1) |
static <T> LUnaryOperator<T> |
LBinaryOperator.lShrinked(LUnaryOperator<T> left,
LBinaryOperator<T> func) |
static <T> LUnaryOperator<T> |
LBinaryOperator.lShrinkedc(T a1,
LBinaryOperator<T> func) |
default LUnaryOperator<T> |
LBinaryOperator.rShrink(LUnaryOperator<T> right) |
default LUnaryOperator<T> |
LBinaryOperator.rShrinkc(T a2) |
static <T> LUnaryOperator<T> |
LBinaryOperator.rShrinked(LUnaryOperator<T> right,
LBinaryOperator<T> func) |
static <T> LUnaryOperator<T> |
LBinaryOperator.rShrinkedc(T a2,
LBinaryOperator<T> func) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LBinaryOperator<T> |
LBinaryOperator.apply1st(LUnaryOperator<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LBinaryOperator<T> |
LBinaryOperator.apply2nd(LUnaryOperator<T> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default LUnaryOperator<T> |
LBinaryOperator.lShrink(LUnaryOperator<T> left) |
static <T> LUnaryOperator<T> |
LBinaryOperator.lShrinked(LUnaryOperator<T> left,
LBinaryOperator<T> func) |
default LUnaryOperator<T> |
LBinaryOperator.rShrink(LUnaryOperator<T> right) |
static <T> LUnaryOperator<T> |
LBinaryOperator.rShrinked(LUnaryOperator<T> right,
LBinaryOperator<T> func) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LBinaryOperator<T> |
LBinaryOperator.uncurry(LFunction<T,LUnaryOperator<T>> func) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LTernaryOperator<T> |
LTernaryOperator.apply1st(LUnaryOperator<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.apply2nd(LUnaryOperator<T> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.apply3rd(LUnaryOperator<T> func)
Captures single parameter function into this interface where only 3rd parameter will be used.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> LTernaryOperator<T> |
LTernaryOperator.uncurry(LFunction<T,LFunction<T,LUnaryOperator<T>>> func) |
| Modifier and Type | Class and Description |
|---|---|
static class |
LUnaryOperator.LUnaryOperatorSingle<T> |
| Modifier and Type | Method and Description |
|---|---|
default LUnaryOperator |
LUnaryOperator.cast()
Cast that replace generics.
|
static <T> LUnaryOperator |
LUnaryOperator.cast(LUnaryOperator<T> function)
Cast that replace generics.
|
static <T> LUnaryOperator<T> |
LUnaryOperator.constant(T r)
Creates function that always returns the same value.
|
static <T> LUnaryOperator<T> |
LUnaryOperator.failSafe(LUnaryOperator<T> func,
LUnaryOperator<T> failSafe) |
default LUnaryOperator<T> |
LUnaryOperator.handling(HandlingInstructions<Throwable,RuntimeException> handling) |
static <V> LUnaryOperator<V> |
LUnaryOperator.identity()
Returns a function that always returns its input argument.
|
default LUnaryOperator<T> |
LUnaryOperator.nonNullable()
Converts to function that makes sure that the result is not null.
|
static <T> LUnaryOperator<T> |
LUnaryOperator.recursive(LFunction<LUnaryOperator<T>,LUnaryOperator<T>> selfLambda) |
static <T> LUnaryOperator<T> |
LUnaryOperator.safe()
Safe instance.
|
static <T> LUnaryOperator<T> |
LUnaryOperator.safe(LUnaryOperator<T> other)
Safe wrapping.
|
default LUnaryOperator<T> |
LUnaryOperator.trying(ExWF<RuntimeException> exF) |
default LUnaryOperator<T> |
LUnaryOperator.trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LUnaryOperator<T> |
LUnaryOperator.tryingThen(LFunction<Throwable,T> handler) |
static <T> LUnaryOperator<T> |
LUnaryOperator.unaryOp(LUnaryOperator<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> LUnaryOperator<T> |
LUnaryOperator.unaryOpThrowing(ExF<Throwable> exF) |
static <T> LUnaryOperator<T> |
LUnaryOperator.unaryOpThrowing(String message,
ExMF<Throwable> exF) |
default LUnaryOperator |
LUnaryOperator.untyped()
Cast that removes generics.
|
LUnaryOperator<T> |
LUnaryOperator.LUnaryOperatorSingle.value() |
static <T> LUnaryOperator<T> |
LUnaryOperator.wrap(java.util.function.UnaryOperator<T> other)
Wraps JRE instance.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> LSupplier<LUnaryOperator<T>> |
LUnaryOperator.safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LUnaryOperator<T>> |
LUnaryOperator.safeSupplier(LSupplier<LUnaryOperator<T>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
LUnaryOperator.call(T a,
LUnaryOperator<T> lambda) |
static <T> LUnaryOperator |
LUnaryOperator.cast(LUnaryOperator<T> function)
Cast that replace generics.
|
static <T> LUnaryOperator<T> |
LUnaryOperator.failSafe(LUnaryOperator<T> func,
LUnaryOperator<T> failSafe) |
static <T> LUnaryOperator<T> |
LUnaryOperator.failSafe(LUnaryOperator<T> func,
LUnaryOperator<T> failSafe) |
default T |
LUnaryOperator.failSafeApply(T a,
LUnaryOperator<T> failSafe) |
static <T> T |
LUnaryOperator.failSafeApply(T a,
LUnaryOperator<T> func,
LUnaryOperator<T> failSafe) |
static <T> T |
LUnaryOperator.failSafeApply(T a,
LUnaryOperator<T> func,
LUnaryOperator<T> failSafe) |
static <T> void |
LUnaryOperator.fromTill(int min_i,
int max_i,
T a,
LUnaryOperator<T> func)
From-To.
|
static <T> void |
LUnaryOperator.fromTo(int min_i,
int max_i,
T a,
LUnaryOperator<T> func)
From-To.
|
static <T> T |
LUnaryOperator.handlingApply(T a,
LUnaryOperator<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <T> LUnaryOperator<T> |
LUnaryOperator.safe(LUnaryOperator<T> other)
Safe wrapping.
|
static <T> void |
LUnaryOperator.times(int max_i,
T a,
LUnaryOperator<T> func)
From-To.
|
static <T> T |
LUnaryOperator.tryApply(T a,
LUnaryOperator<T> func) |
static <T> T |
LUnaryOperator.tryApply(T a,
LUnaryOperator<T> func,
ExWF<RuntimeException> exF) |
static <T> T |
LUnaryOperator.tryApply(T a,
LUnaryOperator<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> T |
LUnaryOperator.tryApplyThen(T a,
LUnaryOperator<T> func,
LFunction<Throwable,T> handler) |
static <T> LUnaryOperator<T> |
LUnaryOperator.unaryOp(LUnaryOperator<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
| Modifier and Type | Method and Description |
|---|---|
static <T> LUnaryOperator<T> |
LUnaryOperator.recursive(LFunction<LUnaryOperator<T>,LUnaryOperator<T>> selfLambda) |
static <T> LUnaryOperator<T> |
LUnaryOperator.recursive(LFunction<LUnaryOperator<T>,LUnaryOperator<T>> selfLambda) |
static <T> LSupplier<LUnaryOperator<T>> |
LUnaryOperator.safeSupplier(LSupplier<LUnaryOperator<T>> supplier)
Safe supplier.
|
Copyright © 2019. All rights reserved.