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