@FunctionalInterface public interface LDblConsumer extends java.util.function.DoubleConsumer, MetaConsumer, MetaInterface.NonThrowing, Codomain<aType.aVoid>, Domain1<aType.aDouble>
Non-throwing functional interface (lambda) LDblConsumer for Java 8.
Type: consumer
Domain (lvl: 1): double a
Co-domain: none
| Modifier and Type | Interface and Description |
|---|---|
static class |
LDblConsumer.LDblConsumerSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(double a) |
default void |
accept(double a,
ExWF<RuntimeException> exF) |
default void |
accept(double a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default void |
acceptThen(double a,
LConsumer<Throwable> handler) |
void |
acceptX(double a)
Implement this, but call accept(double a)
|
default LDblConsumer |
andThen(LDblConsumer after)
Combines two LDblConsumer together in a order.
|
static void |
call(double a,
LDblConsumer lambda) |
default LAction |
capture(double a)
Captures arguments but delays the evaluation.
|
default LDblConsumer |
compose(LDblUnaryOperator before)
Allows to manipulate the domain of the function.
|
static LDblConsumer |
composed(LDblUnaryOperator before,
LDblConsumer after) |
static <V> LConsumer<V> |
composed(LToDblFunction<? super V> before,
LDblConsumer after) |
static LDblConsumer |
dblCons(LDblConsumer lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LConsumer<V> |
dblConsCompose(LToDblFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static LDblConsumer |
dblConsThrowing(ExF<Throwable> exF) |
static LDblConsumer |
dblConsThrowing(String message,
ExMF<Throwable> exF) |
static void |
doNothing(double a)
Does nothing (LDblConsumer)
|
static LDblConsumer |
failSafe(LDblConsumer func,
LDblConsumer failSafe) |
default void |
failSafeAccept(double a,
LDblConsumer failSafe) |
static void |
failSafeAccept(double a,
LDblConsumer func,
LDblConsumer failSafe) |
static <C0> int |
forEach(IndexedRead<C0,aType.aDouble> ia,
C0 source,
LDblConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static void |
fromTill(int min_i,
int max_i,
double a,
LDblConsumer func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
double a,
LDblConsumer func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LDblConsumer |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default void |
handlingAccept(double a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static void |
handlingAccept(double a,
LDblConsumer func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <C0,I0> int |
iterate(SequentialRead<C0,I0,aType.aDouble> sa,
C0 source,
LDblConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
default void |
nestingAccept(double a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
static LDblConsumer |
recursive(LFunction<LDblConsumer,LDblConsumer> selfLambda) |
static LDblConsumer |
safe()
Safe instance.
|
static LDblConsumer |
safe(LDblConsumer other)
Safe wrapping.
|
static LSupplier<LDblConsumer> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LDblConsumer> |
safeSupplier(LSupplier<LDblConsumer> supplier)
Safe supplier.
|
default void |
shovingAccept(double a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static void |
times(int max_i,
double a,
LDblConsumer func)
From-To.
|
static void |
tryAccept(double a,
LDblConsumer func) |
static void |
tryAccept(double a,
LDblConsumer func,
ExWF<RuntimeException> exF) |
static void |
tryAccept(double a,
LDblConsumer func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static void |
tryAcceptThen(double a,
LDblConsumer func,
LConsumer<Throwable> handler) |
default LDblConsumer |
trying(ExWF<RuntimeException> exF) |
default LDblConsumer |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LDblConsumer |
tryingThen(LConsumer<Throwable> handler) |
default LTuple.Void |
tupleAccept(LDblSingle args) |
static LDblConsumer |
wrap(java.util.function.DoubleConsumer other)
Wraps JRE instance.
|
andThenisConsumerformatTo, isAction, isFunction, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default void accept(double a)
accept in interface java.util.function.DoubleConsumervoid acceptX(double a)
throws Throwable
Implement this, but call accept(double a)
Throwabledefault LTuple.Void tupleAccept(LDblSingle args)
default void handlingAccept(double a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LDblConsumer handling(HandlingInstructions<Throwable,RuntimeException> handling)
default void accept(double a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LDblConsumer trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default void accept(double a,
@Nonnull
ExWF<RuntimeException> exF)
default LDblConsumer trying(@Nonnull ExWF<RuntimeException> exF)
default LDblConsumer tryingThen(@Nonnull LConsumer<Throwable> handler)
default void nestingAccept(double a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default void shovingAccept(double a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static void handlingAccept(double a,
LDblConsumer func,
HandlingInstructions<Throwable,RuntimeException> handling)
static void tryAccept(double a,
LDblConsumer func)
static void tryAccept(double a,
LDblConsumer func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static void tryAccept(double a,
LDblConsumer func,
@Nonnull
ExWF<RuntimeException> exF)
static void tryAcceptThen(double a,
LDblConsumer func,
@Nonnull
LConsumer<Throwable> handler)
default void failSafeAccept(double a,
@Nonnull
LDblConsumer failSafe)
static void failSafeAccept(double a,
LDblConsumer func,
@Nonnull
LDblConsumer failSafe)
static LDblConsumer failSafe(LDblConsumer func, @Nonnull LDblConsumer failSafe)
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic void fromTo(int min_i,
int max_i,
double a,
LDblConsumer func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
double a,
LDblConsumer func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
double a,
LDblConsumer func)
From-To. Intended to be used with non-capturing lambda.
default LAction capture(double a)
Captures arguments but delays the evaluation.
@Nonnull static LDblConsumer dblCons(@Nonnull LDblConsumer lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LDblConsumer recursive(@Nonnull LFunction<LDblConsumer,LDblConsumer> selfLambda)
@Nonnull static LDblConsumer dblConsThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LDblConsumer dblConsThrowing(String message, @Nonnull ExMF<Throwable> exF)
static void call(double a,
@Nonnull
LDblConsumer lambda)
@Nonnull static LDblConsumer wrap(java.util.function.DoubleConsumer other)
Wraps JRE instance.
@Nonnull static LDblConsumer safe()
Safe instance.
@Nonnull static LSupplier<LDblConsumer> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LDblConsumer safe(@Nullable LDblConsumer other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LDblConsumer> safeSupplier(@Nullable LSupplier<LDblConsumer> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LDblConsumer compose(@Nonnull LDblUnaryOperator before)
Allows to manipulate the domain of the function.
static LDblConsumer composed(@Nonnull LDblUnaryOperator before, LDblConsumer after)
@Nonnull default <V> LConsumer<V> dblConsCompose(@Nonnull LToDblFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V> LConsumer<V> composed(@Nonnull LToDblFunction<? super V> before, LDblConsumer after)
@Nonnull default LDblConsumer andThen(@Nonnull LDblConsumer after)
Combines two LDblConsumer together in a order.
static void doNothing(double a)
Does nothing (LDblConsumer)
static <C0> int forEach(IndexedRead<C0,aType.aDouble> ia, C0 source, LDblConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C0,I0> int iterate(SequentialRead<C0,I0,aType.aDouble> sa, C0 source, LDblConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.