| Package | Description |
|---|---|
| eu.lunisolar.magma.func.operator.ternary |
| Modifier and Type | Class and Description |
|---|---|
static class |
LTernaryOperator.LTernaryOperatorSingle<T> |
| 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.
|
default LTernaryOperator |
LTernaryOperator.cast()
Cast that replace generics.
|
static <T> LTernaryOperator |
LTernaryOperator.cast(LTernaryOperator<T> function)
Cast that replace generics.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.constant(T r)
Creates function that always returns the same value.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.failSafe(LTernaryOperator<T> func,
LTernaryOperator<T> failSafe) |
default LTernaryOperator<T> |
LTernaryOperator.handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default LTernaryOperator<T> |
LTernaryOperator.nonNullable()
Converts to function that makes sure that the result is not null.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.recursive(LFunction<LTernaryOperator<T>,LTernaryOperator<T>> selfLambda) |
static <T> LTernaryOperator<T> |
LTernaryOperator.safe()
Safe instance.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.safe(LTernaryOperator<T> other)
Safe wrapping.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.ternaryOp(LTernaryOperator<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> LTernaryOperator<T> |
LTernaryOperator.ternaryOpThrowing(ExF<Throwable> exF) |
static <T> LTernaryOperator<T> |
LTernaryOperator.ternaryOpThrowing(String message,
ExMF<Throwable> exF) |
default LTernaryOperator<T> |
LTernaryOperator.trying(ExWF<RuntimeException> exF) |
default LTernaryOperator<T> |
LTernaryOperator.trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LTernaryOperator<T> |
LTernaryOperator.tryingThen(LFunction<Throwable,T> handler) |
static <T> LTernaryOperator<T> |
LTernaryOperator.uncurry(LFunction<T,LFunction<T,LUnaryOperator<T>>> func) |
default LTernaryOperator |
LTernaryOperator.untyped()
Cast that removes generics.
|
LTernaryOperator<T> |
LTernaryOperator.LTernaryOperatorSingle.value() |
| Modifier and Type | Method and Description |
|---|---|
static <T> LSupplier<LTernaryOperator<T>> |
LTernaryOperator.safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LTernaryOperator<T>> |
LTernaryOperator.safeSupplier(LSupplier<LTernaryOperator<T>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
LTernaryOperator.call(T a1,
T a2,
T a3,
LTernaryOperator<T> lambda) |
static <T> LTernaryOperator |
LTernaryOperator.cast(LTernaryOperator<T> function)
Cast that replace generics.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.failSafe(LTernaryOperator<T> func,
LTernaryOperator<T> failSafe) |
static <T> LTernaryOperator<T> |
LTernaryOperator.failSafe(LTernaryOperator<T> func,
LTernaryOperator<T> failSafe) |
default T |
LTernaryOperator.failSafeApply(T a1,
T a2,
T a3,
LTernaryOperator<T> failSafe) |
static <T> T |
LTernaryOperator.failSafeApply(T a1,
T a2,
T a3,
LTernaryOperator<T> func,
LTernaryOperator<T> failSafe) |
static <T> T |
LTernaryOperator.failSafeApply(T a1,
T a2,
T a3,
LTernaryOperator<T> func,
LTernaryOperator<T> failSafe) |
static <T> void |
LTernaryOperator.fromTill(int min_i,
int max_i,
T a1,
T a2,
T a3,
LTernaryOperator<T> func)
From-To.
|
static <T> void |
LTernaryOperator.fromTo(int min_i,
int max_i,
T a1,
T a2,
T a3,
LTernaryOperator<T> func)
From-To.
|
static <T> T |
LTernaryOperator.handlingApply(T a1,
T a2,
T a3,
LTernaryOperator<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <T> LBinaryOperator<T> |
LTernaryOperator.lShrinked(LBinaryOperator<T> left,
LTernaryOperator<T> func) |
static <T> LBinaryOperator<T> |
LTernaryOperator.lShrinkedc(T a1,
LTernaryOperator<T> func) |
static <T> LBinaryOperator<T> |
LTernaryOperator.rShrinked(LBinaryOperator<T> right,
LTernaryOperator<T> func) |
static <T> LBinaryOperator<T> |
LTernaryOperator.rShrinkedc(T a3,
LTernaryOperator<T> func) |
static <T> LTernaryOperator<T> |
LTernaryOperator.safe(LTernaryOperator<T> other)
Safe wrapping.
|
static <T> LTernaryOperator<T> |
LTernaryOperator.ternaryOp(LTernaryOperator<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> void |
LTernaryOperator.times(int max_i,
T a1,
T a2,
T a3,
LTernaryOperator<T> func)
From-To.
|
static <T> T |
LTernaryOperator.tryApply(T a1,
T a2,
T a3,
LTernaryOperator<T> func) |
static <T> T |
LTernaryOperator.tryApply(T a1,
T a2,
T a3,
LTernaryOperator<T> func,
ExWF<RuntimeException> exF) |
static <T> T |
LTernaryOperator.tryApply(T a1,
T a2,
T a3,
LTernaryOperator<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> T |
LTernaryOperator.tryApplyThen(T a1,
T a2,
T a3,
LTernaryOperator<T> func,
LFunction<Throwable,T> handler) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LTernaryOperator<T> |
LTernaryOperator.recursive(LFunction<LTernaryOperator<T>,LTernaryOperator<T>> selfLambda) |
static <T> LTernaryOperator<T> |
LTernaryOperator.recursive(LFunction<LTernaryOperator<T>,LTernaryOperator<T>> selfLambda) |
static <T> LSupplier<LTernaryOperator<T>> |
LTernaryOperator.safeSupplier(LSupplier<LTernaryOperator<T>> supplier)
Safe supplier.
|
Copyright © 2019. All rights reserved.