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