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