Top Description Methods
org.wildfly.common.function

public Interface ExceptionSupplier<T, E extends java.lang.Exception>

Known Direct Implementers
org.wildfly.common.function.Functions.ConstantSupplier
Annotations
@FunctionalInterface
Imports
org.wildfly.common.Assert

A supplier which can throw an exception.
Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public default ExceptionRunnable<E>
andThen(ExceptionConsumer<? super T, ? extends E> after)

public default <R> ExceptionSupplier<R, E>
andThen(ExceptionFunction<? super T, ? extends R, ? extends E> after)

public T

Returns:

the result
get
()

Gets a result.

Method Detail

andThenback to summary
public default ExceptionRunnable<E> andThen(ExceptionConsumer<? super T, ? extends E> after)
andThenback to summary
public default <R> ExceptionSupplier<R, E> andThen(ExceptionFunction<? super T, ? extends R, ? extends E> after)
getback to summary
public T get() throws ExceptionBiConsumer:E

Gets a result.

Returns:T

the result

Exceptions
ExceptionBiConsumer:E:
if an exception occurs