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