Package de.xima.fc.common.function
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>
AConsumer
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 istryAccept(Object)
.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(T t)
void
tryAccept(T t)
Performs this operation on the given argument.
-