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