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