Top Description Methods
io.smallrye.common.function

public Interface ExceptionSupplier<T, E extends Exception>

Known Direct Implementers
io.smallrye.common.function.Functions.ConstantSupplier
Annotations
@FunctionalInterface
Type Parameters
<T>
the result type
<E>
the exception type
Imports
io.smallrye.common.constraint.Assert

A supplier which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public default ExceptionRunnable<E>

Returns:

a runnable which passes the result of this supplier to the given consumer
andThen
(ExceptionConsumer<? super T, ? extends E>
the consumer (must not be null)
after
)

Returns a runnable which passes the result of this supplier to the given consumer.

public default <
the result type
R
>
ExceptionSupplier<R, E>

Returns:

a supplier which passes the result of this supplier through the given function
andThen
(ExceptionFunction<? super T, ? extends R, ? extends E>
the function (must not be null)
after
)

Returns a supplier which passes the result of this supplier through the given function.

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)

Returns a runnable which passes the result of this supplier to the given consumer.

Parameters
after:ExceptionConsumer<? super T, ? extends E>

the consumer (must not be null)

Returns:ExceptionRunnable<E>

a runnable which passes the result of this supplier to the given consumer

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

Returns a supplier which passes the result of this supplier through the given function.

Parameters
<R>
the result type
after:ExceptionFunction<? super T, ? extends R, ? extends E>

the function (must not be null)

Returns:ExceptionSupplier<R, E>

a supplier which passes the result of this supplier through the given function

getback to summary
public T get() throws ExceptionPredicate:E

Gets a result.

Returns:T

the result

Exceptions
ExceptionPredicate:E:
if an exception occurs