@FunctionalInterface public interface LDblIntConsumer extends MetaConsumer, MetaInterface.NonThrowing, Codomain<aType.aVoid>, Domain2<aType.aDouble,aType.aInt>
Non-throwing functional interface (lambda) LDblIntConsumer for Java 8.
Type: consumer
Domain (lvl: 2): double a1,int a2
Co-domain: none
| Modifier and Type | Interface and Description |
|---|---|
static class |
LDblIntConsumer.LDblIntConsumerSingle |
static interface |
LDblIntConsumer.LIntDblCons
Permutation of LDblIntConsumer for method references.
|
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(double a1,
int a2) |
default void |
accept(double a1,
int a2,
ExWF<RuntimeException> exF) |
default void |
accept(double a1,
int a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static LDblIntConsumer |
accept1st(LDblConsumer func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static LDblIntConsumer |
accept2nd(LIntConsumer func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default void |
acceptThen(double a1,
int a2,
LConsumer<Throwable> handler) |
void |
acceptX(double a1,
int a2)
Implement this, but call accept(double a1,int a2)
|
default LDblIntConsumer |
andThen(LDblIntConsumer after)
Combines two LDblIntConsumer together in a order.
|
static void |
call(double a1,
int a2,
LDblIntConsumer lambda) |
default LAction |
capture(double a1,
int a2)
Captures arguments but delays the evaluation.
|
default LDblIntConsumer |
compose(LDblUnaryOperator before1,
LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static LDblIntConsumer |
composed(LDblUnaryOperator before1,
LIntUnaryOperator before2,
LDblIntConsumer after) |
static <V1,V2> LBiConsumer<V1,V2> |
composed(LToDblFunction<? super V1> before1,
LToIntFunction<? super V2> before2,
LDblIntConsumer after) |
static LDblIntConsumer |
dblIntCons(LDblIntConsumer lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LBiConsumer<V1,V2> |
dblIntConsCompose(LToDblFunction<? super V1> before1,
LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static LDblIntConsumer |
dblIntConsThrowing(ExF<Throwable> exF) |
static LDblIntConsumer |
dblIntConsThrowing(String message,
ExMF<Throwable> exF) |
static void |
doNothing(double a1,
int a2)
Does nothing (LDblIntConsumer)
|
static void |
doNothing(int a2,
double a1)
Does nothing (LDblIntConsumer.LIntDblCons)
|
static LDblIntConsumer |
failSafe(LDblIntConsumer func,
LDblIntConsumer failSafe) |
default void |
failSafeAccept(double a1,
int a2,
LDblIntConsumer failSafe) |
static void |
failSafeAccept(double a1,
int a2,
LDblIntConsumer func,
LDblIntConsumer failSafe) |
static <C1,C2> int |
forEach(IndexedRead<C1,aType.aDouble> ia1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static void |
fromTill(int min_a2,
int max_a2,
double a1,
LDblIntConsumer func)
From-To.
|
static void |
fromTo(int min_a2,
int max_a2,
double a1,
LDblIntConsumer func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LDblIntConsumer |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default void |
handlingAccept(double a1,
int a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static void |
handlingAccept(double a1,
int a2,
LDblIntConsumer func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <C1> int |
indexedForEach(IndexedRead<C1,aType.aDouble> ia1,
C1 source1,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index).
|
static <C1,I1> int |
indexedIterate(SequentialRead<C1,I1,aType.aDouble> sa1,
C1 source1,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index).
|
static LDblIntConsumer.LIntDblCons |
intDblCons(LDblIntConsumer.LIntDblCons lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <C1,C2,I2> int |
iterate(IndexedRead<C1,aType.aDouble> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C1,I1,C2> int |
iterate(SequentialRead<C1,I1,aType.aDouble> sa1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C1,I1,C2,I2> |
iterate(SequentialRead<C1,I1,aType.aDouble> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
default LIntConsumer |
lShrink(LIntToDblFunction left) |
default LIntConsumer |
lShrinkc(double a1) |
static LIntConsumer |
lShrinked(LIntToDblFunction left,
LDblIntConsumer func) |
static LIntConsumer |
lShrinkedc(double a1,
LDblIntConsumer func) |
default void |
nestingAccept(double a1,
int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
static LDblIntConsumer |
recursive(LFunction<LDblIntConsumer,LDblIntConsumer> selfLambda) |
default LDblConsumer |
rShrink(LDblToIntFunction right) |
default LDblConsumer |
rShrinkc(int a2) |
static LDblConsumer |
rShrinked(LDblToIntFunction right,
LDblIntConsumer func) |
static LDblConsumer |
rShrinkedc(int a2,
LDblIntConsumer func) |
static LDblIntConsumer |
safe()
Safe instance.
|
static LDblIntConsumer |
safe(LDblIntConsumer other)
Safe wrapping.
|
static LSupplier<LDblIntConsumer> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LDblIntConsumer> |
safeSupplier(LSupplier<LDblIntConsumer> supplier)
Safe supplier.
|
default void |
shovingAccept(double a1,
int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static <C2> double |
targetedForEach(double a1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C2,I2> double |
targetedIterate(double a1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static void |
times(int max_a2,
double a1,
LDblIntConsumer func)
From-To.
|
static void |
tryAccept(double a1,
int a2,
LDblIntConsumer func) |
static void |
tryAccept(double a1,
int a2,
LDblIntConsumer func,
ExWF<RuntimeException> exF) |
static void |
tryAccept(double a1,
int a2,
LDblIntConsumer func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static void |
tryAcceptThen(double a1,
int a2,
LDblIntConsumer func,
LConsumer<Throwable> handler) |
default LDblIntConsumer |
trying(ExWF<RuntimeException> exF) |
default LDblIntConsumer |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LDblIntConsumer |
tryingThen(LConsumer<Throwable> handler) |
default LTuple.Void |
tupleAccept(LDblIntPair args) |
static LDblIntConsumer |
uncurry(LDblFunction<LIntConsumer> func) |
isConsumerformatTo, isAction, isFunction, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default void accept(double a1,
int a2)
void acceptX(double a1,
int a2)
throws Throwable
Implement this, but call accept(double a1,int a2)
Throwabledefault LTuple.Void tupleAccept(LDblIntPair args)
default void handlingAccept(double a1,
int a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LDblIntConsumer handling(HandlingInstructions<Throwable,RuntimeException> handling)
default void accept(double a1,
int a2,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LDblIntConsumer trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default void accept(double a1,
int a2,
@Nonnull
ExWF<RuntimeException> exF)
default LDblIntConsumer trying(@Nonnull ExWF<RuntimeException> exF)
default LDblIntConsumer tryingThen(@Nonnull LConsumer<Throwable> handler)
default void nestingAccept(double a1,
int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default void shovingAccept(double a1,
int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static void handlingAccept(double a1,
int a2,
LDblIntConsumer func,
HandlingInstructions<Throwable,RuntimeException> handling)
static void tryAccept(double a1,
int a2,
LDblIntConsumer func)
static void tryAccept(double a1,
int a2,
LDblIntConsumer func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static void tryAccept(double a1,
int a2,
LDblIntConsumer func,
@Nonnull
ExWF<RuntimeException> exF)
static void tryAcceptThen(double a1,
int a2,
LDblIntConsumer func,
@Nonnull
LConsumer<Throwable> handler)
default void failSafeAccept(double a1,
int a2,
@Nonnull
LDblIntConsumer failSafe)
static void failSafeAccept(double a1,
int a2,
LDblIntConsumer func,
@Nonnull
LDblIntConsumer failSafe)
static LDblIntConsumer failSafe(LDblIntConsumer func, @Nonnull LDblIntConsumer failSafe)
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic void fromTo(int min_a2,
int max_a2,
double a1,
LDblIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_a2,
int max_a2,
double a1,
LDblIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_a2,
double a1,
LDblIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
default LIntConsumer lShrink(LIntToDblFunction left)
default LIntConsumer lShrinkc(double a1)
static LIntConsumer lShrinked(LIntToDblFunction left, LDblIntConsumer func)
static LIntConsumer lShrinkedc(double a1, LDblIntConsumer func)
default LDblConsumer rShrink(LDblToIntFunction right)
default LDblConsumer rShrinkc(int a2)
static LDblConsumer rShrinked(LDblToIntFunction right, LDblIntConsumer func)
static LDblConsumer rShrinkedc(int a2, LDblIntConsumer func)
static LDblIntConsumer uncurry(LDblFunction<LIntConsumer> func)
default LAction capture(double a1, int a2)
Captures arguments but delays the evaluation.
@Nonnull static LDblIntConsumer accept1st(@Nonnull LDblConsumer func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static LDblIntConsumer accept2nd(@Nonnull LIntConsumer func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static LDblIntConsumer dblIntCons(@Nonnull LDblIntConsumer lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LDblIntConsumer recursive(@Nonnull LFunction<LDblIntConsumer,LDblIntConsumer> selfLambda)
@Nonnull static LDblIntConsumer dblIntConsThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LDblIntConsumer dblIntConsThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static LDblIntConsumer.LIntDblCons intDblCons(@Nonnull LDblIntConsumer.LIntDblCons lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static void call(double a1,
int a2,
@Nonnull
LDblIntConsumer lambda)
@Nonnull static LDblIntConsumer safe()
Safe instance.
@Nonnull static LSupplier<LDblIntConsumer> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LDblIntConsumer safe(@Nullable LDblIntConsumer other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LDblIntConsumer> safeSupplier(@Nullable LSupplier<LDblIntConsumer> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LDblIntConsumer compose(@Nonnull LDblUnaryOperator before1, @Nonnull LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
static LDblIntConsumer composed(@Nonnull LDblUnaryOperator before1, @Nonnull LIntUnaryOperator before2, LDblIntConsumer after)
@Nonnull default <V1,V2> LBiConsumer<V1,V2> dblIntConsCompose(@Nonnull LToDblFunction<? super V1> before1, @Nonnull LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2> LBiConsumer<V1,V2> composed(@Nonnull LToDblFunction<? super V1> before1, @Nonnull LToIntFunction<? super V2> before2, LDblIntConsumer after)
@Nonnull default LDblIntConsumer andThen(@Nonnull LDblIntConsumer after)
Combines two LDblIntConsumer together in a order.
static void doNothing(double a1,
int a2)
Does nothing (LDblIntConsumer)
static void doNothing(int a2,
double a1)
Does nothing (LDblIntConsumer.LIntDblCons)
static <C1,C2> int forEach(IndexedRead<C1,aType.aDouble> ia1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1,C2> int iterate(SequentialRead<C1,I1,aType.aDouble> sa1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,C2,I2> int iterate(IndexedRead<C1,aType.aDouble> ia1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1,C2,I2> int iterate(SequentialRead<C1,I1,aType.aDouble> sa1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LDblIntConsumer 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.
static <C1> int indexedForEach(IndexedRead<C1,aType.aDouble> ia1, C1 source1, LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index). Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1> int indexedIterate(SequentialRead<C1,I1,aType.aDouble> sa1, C1 source1, LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index). Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
static <C2> double targetedForEach(double a1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C2,I2> double targetedIterate(double a1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LDblIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.