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