Package org.eclipse.net4j.util
Schnittstelle ConsumerWithException<T,E extends Exception>
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
An interface with an
accept(Object)
method that can propagate checked exceptions.- Seit:
- 3.12
- Autor:
- Eike Stepper
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
consumer
(ConsumerWithException<T, E> consumerWithException) consumer
(ConsumerWithException<T, E> consumerWithException, Class<E> exceptionClass, Consumer<E> exceptionHandler)
-
Methodendetails
-
accept
- Löst aus:
E
-
consumer
static <T,E extends Exception> Consumer<T> consumer(ConsumerWithException<T, E> consumerWithException, Class<E> exceptionClass, Consumer<E> exceptionHandler) -
consumer
static <T,E extends Exception> Consumer<T> consumer(ConsumerWithException<T, E> consumerWithException)
-