@FunctionalInterface public interface LBoolToSrtFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aShort>, Domain1<aType.aBool>
Non-throwing functional interface (lambda) LBoolToSrtFunction for Java 8.
Type: function
Domain (lvl: 1): boolean a
Co-domain: short
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolToSrtFunction.LBoolToSrtFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default short |
applyAsSrt(boolean a) |
default short |
applyAsSrt(boolean a,
ExWF<RuntimeException> exF) |
default short |
applyAsSrt(boolean a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default short |
applyAsSrtThen(boolean a,
LToSrtFunction<Throwable> handler) |
short |
applyAsSrtX(boolean a)
Implement this, but call applyAsSrt(boolean a)
|
static LBoolToSrtFunction |
boolToSrtFunc(LBoolToSrtFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToSrtFunction<V> |
boolToSrtFuncCompose(LPredicate<? super V> before)
Allows to manipulate the domain of the function.
|
static LBoolToSrtFunction |
boolToSrtFuncThrowing(ExF<Throwable> exF) |
static LBoolToSrtFunction |
boolToSrtFuncThrowing(String message,
ExMF<Throwable> exF) |
static short |
call(boolean a,
LBoolToSrtFunction lambda) |
default LSrtSupplier |
capture(boolean a)
Captures arguments but delays the evaluation.
|
default LBoolToSrtFunction |
compose(LLogicalOperator before)
Allows to manipulate the domain of the function.
|
static LBoolToSrtFunction |
composed(LLogicalOperator before,
LBoolToSrtFunction after) |
static <V> LToSrtFunction<V> |
composed(LPredicate<? super V> before,
LBoolToSrtFunction after) |
static LBoolToSrtFunction |
constant(short r)
Creates function that always returns the same value.
|
static LBoolToSrtFunction |
failSafe(LBoolToSrtFunction func,
LBoolToSrtFunction failSafe) |
default short |
failSafeApplyAsSrt(boolean a,
LBoolToSrtFunction failSafe) |
static short |
failSafeApplyAsSrt(boolean a,
LBoolToSrtFunction func,
LBoolToSrtFunction failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aBool> ia,
C0 source,
LSrtConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static void |
fromTill(int min_i,
int max_i,
boolean a,
LBoolToSrtFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
boolean a,
LBoolToSrtFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBoolToSrtFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default short |
handlingApplyAsSrt(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static short |
handlingApplyAsSrt(boolean a,
LBoolToSrtFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aBool> sa,
C0 source,
LSrtConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default short |
nestingApplyAsSrt(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default short |
nonNullApplyAsSrt(boolean a)
Just to mirror the method: Ensures the result is not null
|
static short |
produceShort(boolean a)
Does nothing (LBoolToSrtFunction) Function
|
static LBoolToSrtFunction |
recursive(LFunction<LBoolToSrtFunction,LBoolToSrtFunction> selfLambda) |
static LBoolToSrtFunction |
safe()
Safe instance.
|
static LBoolToSrtFunction |
safe(LBoolToSrtFunction other)
Safe wrapping.
|
static LSupplier<LBoolToSrtFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBoolToSrtFunction> |
safeSupplier(LSupplier<LBoolToSrtFunction> supplier)
Safe supplier.
|
default short |
shovingApplyAsSrt(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LBoolFunction<V> |
then(LSrtFunction<? extends V> after)
Combines two functions together in a order.
|
default LLogicalOperator |
thenToBool(LSrtPredicate after)
Combines two functions together in a order.
|
default LBoolToByteFunction |
thenToByte(LSrtToByteFunction after)
Combines two functions together in a order.
|
default LBoolToCharFunction |
thenToChar(LSrtToCharFunction after)
Combines two functions together in a order.
|
default LBoolToDblFunction |
thenToDbl(LSrtToDblFunction after)
Combines two functions together in a order.
|
default LBoolToFltFunction |
thenToFlt(LSrtToFltFunction after)
Combines two functions together in a order.
|
default LBoolToIntFunction |
thenToInt(LSrtToIntFunction after)
Combines two functions together in a order.
|
default LBoolToLongFunction |
thenToLong(LSrtToLongFunction after)
Combines two functions together in a order.
|
default LBoolToSrtFunction |
thenToSrt(LSrtUnaryOperator after)
Combines two functions together in a order.
|
static void |
times(int max_i,
boolean a,
LBoolToSrtFunction func)
From-To.
|
static short |
tryApplyAsSrt(boolean a,
LBoolToSrtFunction func) |
static short |
tryApplyAsSrt(boolean a,
LBoolToSrtFunction func,
ExWF<RuntimeException> exF) |
static short |
tryApplyAsSrt(boolean a,
LBoolToSrtFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static short |
tryApplyAsSrtThen(boolean a,
LBoolToSrtFunction func,
LToSrtFunction<Throwable> handler) |
default LBoolToSrtFunction |
trying(ExWF<RuntimeException> exF) |
default LBoolToSrtFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBoolToSrtFunction |
tryingThen(LToSrtFunction<Throwable> handler) |
default short |
tupleApplyAsSrt(LBoolSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default short applyAsSrt(boolean a)
short applyAsSrtX(boolean a)
throws Throwable
Implement this, but call applyAsSrt(boolean a)
Throwabledefault short tupleApplyAsSrt(LBoolSingle args)
default short handlingApplyAsSrt(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBoolToSrtFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default short applyAsSrt(boolean a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LBoolToSrtFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default short applyAsSrt(boolean a,
@Nonnull
ExWF<RuntimeException> exF)
default LBoolToSrtFunction trying(@Nonnull ExWF<RuntimeException> exF)
default short applyAsSrtThen(boolean a,
@Nonnull
LToSrtFunction<Throwable> handler)
default LBoolToSrtFunction tryingThen(@Nonnull LToSrtFunction<Throwable> handler)
default short nestingApplyAsSrt(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default short shovingApplyAsSrt(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static short handlingApplyAsSrt(boolean a,
LBoolToSrtFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static short tryApplyAsSrt(boolean a,
LBoolToSrtFunction func)
static short tryApplyAsSrt(boolean a,
LBoolToSrtFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static short tryApplyAsSrt(boolean a,
LBoolToSrtFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static short tryApplyAsSrtThen(boolean a,
LBoolToSrtFunction func,
@Nonnull
LToSrtFunction<Throwable> handler)
default short failSafeApplyAsSrt(boolean a,
@Nonnull
LBoolToSrtFunction failSafe)
static short failSafeApplyAsSrt(boolean a,
LBoolToSrtFunction func,
@Nonnull
LBoolToSrtFunction failSafe)
static LBoolToSrtFunction failSafe(LBoolToSrtFunction func, @Nonnull LBoolToSrtFunction failSafe)
default short nonNullApplyAsSrt(boolean a)
Just to mirror the method: Ensures the result is not null
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic void fromTo(int min_i,
int max_i,
boolean a,
LBoolToSrtFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
boolean a,
LBoolToSrtFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
boolean a,
LBoolToSrtFunction func)
From-To. Intended to be used with non-capturing lambda.
default LSrtSupplier capture(boolean a)
Captures arguments but delays the evaluation.
static LBoolToSrtFunction constant(short r)
Creates function that always returns the same value.
@Nonnull static LBoolToSrtFunction boolToSrtFunc(@Nonnull LBoolToSrtFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBoolToSrtFunction recursive(@Nonnull LFunction<LBoolToSrtFunction,LBoolToSrtFunction> selfLambda)
@Nonnull static LBoolToSrtFunction boolToSrtFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBoolToSrtFunction boolToSrtFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static short call(boolean a,
@Nonnull
LBoolToSrtFunction lambda)
@Nonnull static LBoolToSrtFunction safe()
Safe instance. That always returns the same value (as produceShort).
@Nonnull static LSupplier<LBoolToSrtFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBoolToSrtFunction safe(@Nullable LBoolToSrtFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBoolToSrtFunction> safeSupplier(@Nullable LSupplier<LBoolToSrtFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBoolToSrtFunction compose(@Nonnull LLogicalOperator before)
Allows to manipulate the domain of the function.
static LBoolToSrtFunction composed(@Nonnull LLogicalOperator before, LBoolToSrtFunction after)
@Nonnull default <V> LToSrtFunction<V> boolToSrtFuncCompose(@Nonnull LPredicate<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToSrtFunction<V> composed(@Nonnull LPredicate<? super V> before, LBoolToSrtFunction after)
@Nonnull default <V> LBoolFunction<V> then(@Nonnull LSrtFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LBoolToByteFunction thenToByte(@Nonnull LSrtToByteFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToSrtFunction thenToSrt(@Nonnull LSrtUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBoolToIntFunction thenToInt(@Nonnull LSrtToIntFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToLongFunction thenToLong(@Nonnull LSrtToLongFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToFltFunction thenToFlt(@Nonnull LSrtToFltFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToDblFunction thenToDbl(@Nonnull LSrtToDblFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToCharFunction thenToChar(@Nonnull LSrtToCharFunction after)
Combines two functions together in a order.
@Nonnull default LLogicalOperator thenToBool(@Nonnull LSrtPredicate after)
Combines two functions together in a order.
static short produceShort(boolean a)
Does nothing (LBoolToSrtFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aBool> ia, C0 source, LSrtConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C0,I0> void iterate(SequentialRead<C0,I0,aType.aBool> sa, C0 source, LSrtConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.