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