| Package | Description |
|---|---|
| eu.lunisolar.magma.func.function.from | |
| eu.lunisolar.magma.func.operator.binary | |
| eu.lunisolar.magma.func.predicate |
| Modifier and Type | Method and Description |
|---|---|
default LSrtBinaryOperator |
LBiSrtFunction.thenToSrt(LToSrtFunction<? super R> after)
Combines two functions together in a order.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
LSrtBinaryOperator.LSrtBinaryOperatorSingle |
| Modifier and Type | Method and Description |
|---|---|
static LSrtBinaryOperator |
LSrtBinaryOperator.apply1stAsSrt(LSrtUnaryOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.apply2ndAsSrt(LSrtUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default LSrtBinaryOperator |
LSrtBinaryOperator.compose(LSrtUnaryOperator before1,
LSrtUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.composed(LSrtUnaryOperator before1,
LSrtUnaryOperator before2,
LSrtBinaryOperator after) |
static LSrtBinaryOperator |
LSrtBinaryOperator.constant(short r)
Creates function that always returns the same value.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.failSafe(LSrtBinaryOperator func,
LSrtBinaryOperator failSafe) |
default LSrtBinaryOperator |
LSrtBinaryOperator.handling(HandlingInstructions<Throwable,RuntimeException> handling) |
static LSrtBinaryOperator |
LSrtBinaryOperator.max()
Returns function that returns the higher value.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.maxBy(Comparator<Short> comparator)
Creates function that returns the lesser value according to the comparator.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.min()
Returns function that returns the lower value.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.minBy(Comparator<Short> comparator)
Creates function that returns the lesser value according to the comparator.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.recursive(LFunction<LSrtBinaryOperator,LSrtBinaryOperator> selfLambda) |
static LSrtBinaryOperator |
LSrtBinaryOperator.safe()
Safe instance.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.safe(LSrtBinaryOperator other)
Safe wrapping.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.srtBinaryOp(LSrtBinaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LSrtBinaryOperator |
LSrtBinaryOperator.srtBinaryOpThrowing(ExF<Throwable> exF) |
static LSrtBinaryOperator |
LSrtBinaryOperator.srtBinaryOpThrowing(String message,
ExMF<Throwable> exF) |
default LSrtBinaryOperator |
LSrtBinaryOperator.thenToSrt(LSrtUnaryOperator after)
Combines two functions together in a order.
|
default LSrtBinaryOperator |
LSrtBinaryOperator.trying(ExWF<RuntimeException> exF) |
default LSrtBinaryOperator |
LSrtBinaryOperator.trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LSrtBinaryOperator |
LSrtBinaryOperator.tryingThen(LToSrtFunction<Throwable> handler) |
static LSrtBinaryOperator |
LSrtBinaryOperator.uncurry(LSrtFunction<LSrtUnaryOperator> func) |
LSrtBinaryOperator |
LSrtBinaryOperator.LSrtBinaryOperatorSingle.value() |
| Modifier and Type | Method and Description |
|---|---|
static LSupplier<LSrtBinaryOperator> |
LSrtBinaryOperator.safeSupplier()
Safe instance supplier.
|
static LSupplier<LSrtBinaryOperator> |
LSrtBinaryOperator.safeSupplier(LSupplier<LSrtBinaryOperator> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
static short |
LSrtBinaryOperator.call(short a1,
short a2,
LSrtBinaryOperator lambda) |
static LSrtBinaryOperator |
LSrtBinaryOperator.composed(LSrtUnaryOperator before1,
LSrtUnaryOperator before2,
LSrtBinaryOperator after) |
static <V1,V2> LToSrtBiFunction<V1,V2> |
LSrtBinaryOperator.composed(LToSrtFunction<? super V1> before1,
LToSrtFunction<? super V2> before2,
LSrtBinaryOperator after) |
static LSrtBinaryOperator |
LSrtBinaryOperator.failSafe(LSrtBinaryOperator func,
LSrtBinaryOperator failSafe) |
default short |
LSrtBinaryOperator.failSafeApplyAsSrt(short a1,
short a2,
LSrtBinaryOperator failSafe) |
static short |
LSrtBinaryOperator.failSafeApplyAsSrt(short a1,
short a2,
LSrtBinaryOperator func,
LSrtBinaryOperator failSafe) |
static void |
LSrtBinaryOperator.fromTill(int min_i,
int max_i,
short a1,
short a2,
LSrtBinaryOperator func)
From-To.
|
static void |
LSrtBinaryOperator.fromTo(int min_i,
int max_i,
short a1,
short a2,
LSrtBinaryOperator func)
From-To.
|
static short |
LSrtBinaryOperator.handlingApplyAsSrt(short a1,
short a2,
LSrtBinaryOperator func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static LSrtUnaryOperator |
LSrtBinaryOperator.lShrinked(LSrtUnaryOperator left,
LSrtBinaryOperator func) |
static LSrtUnaryOperator |
LSrtBinaryOperator.lShrinkedc(short a1,
LSrtBinaryOperator func) |
static LSrtUnaryOperator |
LSrtBinaryOperator.rShrinked(LSrtUnaryOperator right,
LSrtBinaryOperator func) |
static LSrtUnaryOperator |
LSrtBinaryOperator.rShrinkedc(short a2,
LSrtBinaryOperator func) |
static LSrtBinaryOperator |
LSrtBinaryOperator.safe(LSrtBinaryOperator other)
Safe wrapping.
|
static LSrtBinaryOperator |
LSrtBinaryOperator.srtBinaryOp(LSrtBinaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static void |
LSrtBinaryOperator.times(int max_i,
short a1,
short a2,
LSrtBinaryOperator func)
From-To.
|
static short |
LSrtBinaryOperator.tryApplyAsSrt(short a1,
short a2,
LSrtBinaryOperator func) |
static short |
LSrtBinaryOperator.tryApplyAsSrt(short a1,
short a2,
LSrtBinaryOperator func,
ExWF<RuntimeException> exF) |
static short |
LSrtBinaryOperator.tryApplyAsSrt(short a1,
short a2,
LSrtBinaryOperator func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static short |
LSrtBinaryOperator.tryApplyAsSrtThen(short a1,
short a2,
LSrtBinaryOperator func,
LToSrtFunction<Throwable> handler) |
| Modifier and Type | Method and Description |
|---|---|
static LSrtBinaryOperator |
LSrtBinaryOperator.recursive(LFunction<LSrtBinaryOperator,LSrtBinaryOperator> selfLambda) |
static LSrtBinaryOperator |
LSrtBinaryOperator.recursive(LFunction<LSrtBinaryOperator,LSrtBinaryOperator> selfLambda) |
static LSupplier<LSrtBinaryOperator> |
LSrtBinaryOperator.safeSupplier(LSupplier<LSrtBinaryOperator> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
default LSrtBinaryOperator |
LBiSrtPredicate.boolToSrtBinaryOp(LBoolToSrtFunction after)
Combines two functions together in a order.
|
Copyright © 2019. All rights reserved.