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