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