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