Interface ThrowingConsumer<T,X extends Exception>
- Type Parameters:
T- The input type of the consumer.X- The exception type the consumer may throw.
public interface ThrowingConsumer<T,X extends Exception>
Functional interface for operations which may throw a checked exception.
- Since:
- 5.0.2
- Author:
- John Hendrikx
-
Method Summary
-
Method Details
-
accept
Accepts an input to perform an operation.- Parameters:
input- The input of typeT.- Throws:
X- When the consumer failed with an exception of typeX.
-