E
- Thrown exception.@FunctionalInterface public interface FailableLongConsumer<E extends Throwable>
LongConsumer
that declares a Throwable
.Modifier and Type | Field and Description |
---|---|
static FailableLongConsumer |
NOP
NOP singleton
|
Modifier and Type | Method and Description |
---|---|
void |
accept(long object)
Accepts the consumer.
|
default FailableLongConsumer<E> |
andThen(FailableLongConsumer<E> after)
Returns a composed
FailableLongConsumer like LongConsumer.andThen(LongConsumer) . |
static <E extends Throwable> |
nop()
Returns The NOP singleton.
|
static final FailableLongConsumer NOP
static <E extends Throwable> FailableLongConsumer<E> nop()
E
- Thrown exception.default FailableLongConsumer<E> andThen(FailableLongConsumer<E> after)
FailableLongConsumer
like LongConsumer.andThen(LongConsumer)
.after
- the operation to perform after this one.FailableLongConsumer
like LongConsumer.andThen(LongConsumer)
.NullPointerException
- if after
is nullCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.