@FunctionalInterface public interface LBoolToDblFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aDouble>, Domain1<aType.aBool>
Non-throwing functional interface (lambda) LBoolToDblFunction for Java 8.
Type: function
Domain (lvl: 1): boolean a
Co-domain: double
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolToDblFunction.LBoolToDblFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default double |
applyAsDbl(boolean a) |
default double |
applyAsDbl(boolean a,
ExWF<RuntimeException> exF) |
default double |
applyAsDbl(boolean a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default double |
applyAsDblThen(boolean a,
LToDblFunction<Throwable> handler) |
double |
applyAsDblX(boolean a)
Implement this, but call applyAsDbl(boolean a)
|
static LBoolToDblFunction |
boolToDblFunc(LBoolToDblFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToDblFunction<V> |
boolToDblFuncCompose(LPredicate<? super V> before)
Allows to manipulate the domain of the function.
|
static LBoolToDblFunction |
boolToDblFuncThrowing(ExF<Throwable> exF) |
static LBoolToDblFunction |
boolToDblFuncThrowing(String message,
ExMF<Throwable> exF) |
static double |
call(boolean a,
LBoolToDblFunction lambda) |
default LDblSupplier |
capture(boolean a)
Captures arguments but delays the evaluation.
|
default LBoolToDblFunction |
compose(LLogicalOperator before)
Allows to manipulate the domain of the function.
|
static LBoolToDblFunction |
composed(LLogicalOperator before,
LBoolToDblFunction after) |
static <V> LToDblFunction<V> |
composed(LPredicate<? super V> before,
LBoolToDblFunction after) |
static LBoolToDblFunction |
constant(double r)
Creates function that always returns the same value.
|
static LBoolToDblFunction |
failSafe(LBoolToDblFunction func,
LBoolToDblFunction failSafe) |
default double |
failSafeApplyAsDbl(boolean a,
LBoolToDblFunction failSafe) |
static double |
failSafeApplyAsDbl(boolean a,
LBoolToDblFunction func,
LBoolToDblFunction failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aBool> ia,
C0 source,
LDblConsumer 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,
LBoolToDblFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
boolean a,
LBoolToDblFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBoolToDblFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default double |
handlingApplyAsDbl(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static double |
handlingApplyAsDbl(boolean a,
LBoolToDblFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aBool> sa,
C0 source,
LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default double |
nestingApplyAsDbl(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default double |
nonNullApplyAsDbl(boolean a)
Just to mirror the method: Ensures the result is not null
|
static double |
produceDouble(boolean a)
Does nothing (LBoolToDblFunction) Function
|
static LBoolToDblFunction |
recursive(LFunction<LBoolToDblFunction,LBoolToDblFunction> selfLambda) |
static LBoolToDblFunction |
safe()
Safe instance.
|
static LBoolToDblFunction |
safe(LBoolToDblFunction other)
Safe wrapping.
|
static LSupplier<LBoolToDblFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBoolToDblFunction> |
safeSupplier(LSupplier<LBoolToDblFunction> supplier)
Safe supplier.
|
default double |
shovingApplyAsDbl(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(LDblFunction<? extends V> after)
Combines two functions together in a order.
|
default LLogicalOperator |
thenToBool(LDblPredicate after)
Combines two functions together in a order.
|
default LBoolToByteFunction |
thenToByte(LDblToByteFunction after)
Combines two functions together in a order.
|
default LBoolToCharFunction |
thenToChar(LDblToCharFunction after)
Combines two functions together in a order.
|
default LBoolToDblFunction |
thenToDbl(LDblUnaryOperator after)
Combines two functions together in a order.
|
default LBoolToFltFunction |
thenToFlt(LDblToFltFunction after)
Combines two functions together in a order.
|
default LBoolToIntFunction |
thenToInt(LDblToIntFunction after)
Combines two functions together in a order.
|
default LBoolToLongFunction |
thenToLong(LDblToLongFunction after)
Combines two functions together in a order.
|
default LBoolToSrtFunction |
thenToSrt(LDblToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
boolean a,
LBoolToDblFunction func)
From-To.
|
static double |
tryApplyAsDbl(boolean a,
LBoolToDblFunction func) |
static double |
tryApplyAsDbl(boolean a,
LBoolToDblFunction func,
ExWF<RuntimeException> exF) |
static double |
tryApplyAsDbl(boolean a,
LBoolToDblFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static double |
tryApplyAsDblThen(boolean a,
LBoolToDblFunction func,
LToDblFunction<Throwable> handler) |
default LBoolToDblFunction |
trying(ExWF<RuntimeException> exF) |
default LBoolToDblFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBoolToDblFunction |
tryingThen(LToDblFunction<Throwable> handler) |
default double |
tupleApplyAsDbl(LBoolSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default double applyAsDbl(boolean a)
double applyAsDblX(boolean a)
throws Throwable
Implement this, but call applyAsDbl(boolean a)
Throwabledefault double tupleApplyAsDbl(LBoolSingle args)
default double handlingApplyAsDbl(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBoolToDblFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default double applyAsDbl(boolean a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LBoolToDblFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default double applyAsDbl(boolean a,
@Nonnull
ExWF<RuntimeException> exF)
default LBoolToDblFunction trying(@Nonnull ExWF<RuntimeException> exF)
default double applyAsDblThen(boolean a,
@Nonnull
LToDblFunction<Throwable> handler)
default LBoolToDblFunction tryingThen(@Nonnull LToDblFunction<Throwable> handler)
default double nestingApplyAsDbl(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default double shovingApplyAsDbl(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static double handlingApplyAsDbl(boolean a,
LBoolToDblFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static double tryApplyAsDbl(boolean a,
LBoolToDblFunction func)
static double tryApplyAsDbl(boolean a,
LBoolToDblFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static double tryApplyAsDbl(boolean a,
LBoolToDblFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static double tryApplyAsDblThen(boolean a,
LBoolToDblFunction func,
@Nonnull
LToDblFunction<Throwable> handler)
default double failSafeApplyAsDbl(boolean a,
@Nonnull
LBoolToDblFunction failSafe)
static double failSafeApplyAsDbl(boolean a,
LBoolToDblFunction func,
@Nonnull
LBoolToDblFunction failSafe)
static LBoolToDblFunction failSafe(LBoolToDblFunction func, @Nonnull LBoolToDblFunction failSafe)
default double nonNullApplyAsDbl(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,
LBoolToDblFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
boolean a,
LBoolToDblFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
boolean a,
LBoolToDblFunction func)
From-To. Intended to be used with non-capturing lambda.
default LDblSupplier capture(boolean a)
Captures arguments but delays the evaluation.
static LBoolToDblFunction constant(double r)
Creates function that always returns the same value.
@Nonnull static LBoolToDblFunction boolToDblFunc(@Nonnull LBoolToDblFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBoolToDblFunction recursive(@Nonnull LFunction<LBoolToDblFunction,LBoolToDblFunction> selfLambda)
@Nonnull static LBoolToDblFunction boolToDblFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBoolToDblFunction boolToDblFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static double call(boolean a,
@Nonnull
LBoolToDblFunction lambda)
@Nonnull static LBoolToDblFunction safe()
Safe instance. That always returns the same value (as produceDouble).
@Nonnull static LSupplier<LBoolToDblFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBoolToDblFunction safe(@Nullable LBoolToDblFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBoolToDblFunction> safeSupplier(@Nullable LSupplier<LBoolToDblFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBoolToDblFunction compose(@Nonnull LLogicalOperator before)
Allows to manipulate the domain of the function.
static LBoolToDblFunction composed(@Nonnull LLogicalOperator before, LBoolToDblFunction after)
@Nonnull default <V> LToDblFunction<V> boolToDblFuncCompose(@Nonnull LPredicate<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToDblFunction<V> composed(@Nonnull LPredicate<? super V> before, LBoolToDblFunction after)
@Nonnull default <V> LBoolFunction<V> then(@Nonnull LDblFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LBoolToByteFunction thenToByte(@Nonnull LDblToByteFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToSrtFunction thenToSrt(@Nonnull LDblToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToIntFunction thenToInt(@Nonnull LDblToIntFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToLongFunction thenToLong(@Nonnull LDblToLongFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToFltFunction thenToFlt(@Nonnull LDblToFltFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToDblFunction thenToDbl(@Nonnull LDblUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBoolToCharFunction thenToChar(@Nonnull LDblToCharFunction after)
Combines two functions together in a order.
@Nonnull default LLogicalOperator thenToBool(@Nonnull LDblPredicate after)
Combines two functions together in a order.
static double produceDouble(boolean a)
Does nothing (LBoolToDblFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aBool> ia, C0 source, LDblConsumer 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, LDblConsumer 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.