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