Package org.wildfly.common.function
Interface ExceptionSupplier<T,E extends java.lang.Exception>
-
- 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 ExceptionSupplier<T,E extends java.lang.Exception>
A supplier which can throw an exception.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ExceptionRunnable<E>
andThen(ExceptionConsumer<? super T,? extends E> after)
default <R> ExceptionSupplier<R,E>
andThen(ExceptionFunction<? super T,? extends R,? extends E> after)
T
get()
Gets a result.
-
-
-
Method Detail
-
andThen
default ExceptionRunnable<E> andThen(ExceptionConsumer<? super T,? extends E> after)
-
andThen
default <R> ExceptionSupplier<R,E> andThen(ExceptionFunction<? super T,? extends R,? extends E> after)
-
-