I - the type of the input to the functionT - the type of Throwable thrown@FunctionalInterface public interface ThrowingConsumer<I,T extends Throwable>
Represents an operation that accepts a single input argument and returns no
result. Unlike most other functional interfaces, Consumer is expected
to operate via side-effects.
This is a functional interface
whose functional method is accept(Object).
| Modifier and Type | Method and Description |
|---|---|
void |
accept(I in)
Performs this operation on the given argument.
|
void accept(I in) throws T extends Throwable, IllegalStateException
in - the input argumentT extends ThrowableIllegalStateExceptionCopyright © 2024. All rights reserved.