Interface ITypedThrowingConsumer<T, E extends Throwable>
- Type Parameters:
T- The type of the argument expected by this function.E- The type of exception that may be thrown.
- All Superinterfaces:
Consumer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ITypedThrowingConsumer<T, E extends Throwable>
extends Consumer<T>
A
Consumer that may throw a single typed checked exception.
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 tryAccept(Object).
- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
-
Method Details
-
accept
-
tryAccept
Performs this operation on the given argument.- Parameters:
t- the input argument- Throws:
E- When this operation fails.
-