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