@FunctionalInterface public interface ThrowingLongConsumer
LongConsumer
that allows throwing checked exceptions. ThrowingLongConsumer
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromLongConsumer(ThrowingLongConsumer)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
void |
accept(long value)
Variation of LongConsumer.accept(long) that allows throwing checked exceptions.
|
void accept(long value) throws Throwable
LongConsumer.accept(long)
that allows throwing checked exceptions.
value
- see LongConsumer.accept(long)
Throwable
- if unable to complete
CheckedExceptionHandler.fromLongConsumer(ThrowingLongConsumer)
, LongConsumer.accept(long)
Copyright © 2017–2020 Robert Važan. All rights reserved.