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