Package org.wildfly.common.function
Interface ExceptionSupplier<T,E extends Exception>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A supplier which can throw an exception.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExceptionRunnable<E>andThen(ExceptionConsumer<? super T, ? extends E> after) default <R> ExceptionSupplier<R,E> andThen(ExceptionFunction<? super T, ? extends R, ? extends E> after) get()Gets a result.
-
Method Details
-
get
Gets a result.- Returns:
- the result
- Throws:
E- if an exception occurs
-
andThen
-
andThen
default <R> ExceptionSupplier<R,E> andThen(ExceptionFunction<? super T, ? extends R, ? extends E> after)
-