@FunctionalInterface
public interface ExceptionConsumer<T,E extends java.lang.Exception>
Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Performs this operation on the given argument.
|
default ExceptionConsumer<T,E> |
andThen(ExceptionConsumer<? super T,? extends E> after) |
default ExceptionConsumer<T,E> |
compose(ExceptionConsumer<? super T,? extends E> before) |
default ExceptionRunnable<E> |
compose(ExceptionSupplier<? extends T,? extends E> before) |
void accept(T t) throws E extends java.lang.Exception
t
- the argumentE
- if an exception occursE extends java.lang.Exception
default ExceptionConsumer<T,E> andThen(ExceptionConsumer<? super T,? extends E> after)
default ExceptionConsumer<T,E> compose(ExceptionConsumer<? super T,? extends E> before)
default ExceptionRunnable<E> compose(ExceptionSupplier<? extends T,? extends E> before)
Copyright © 2015 JBoss, a division of Red Hat, Inc.