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