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