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