Top Description Methods
org.wildfly.common.function

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

Known Direct Subinterfaces
org.wildfly.common.function.ExceptionUnaryOperator
Known Direct Implementers
org.wildfly.common.function.Functions.ExceptionSupplierFunction, org.wildfly.common.function.Functions.SupplierExceptionFunction
Annotations
@FunctionalInterface
Imports
org.wildfly.common.Assert

A one-argument function which can throw an exception.
Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public default <R2> ExceptionFunction<T, R2, E>
andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after)

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

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

public default ExceptionConsumer<T, E>
andThen(ExceptionBiConsumer<? super T, ? super R, ? extends E> after)

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

public default ExceptionPredicate<T, E>
andThen(ExceptionBiPredicate<? super T, ? super R, ? extends E> after)

public R

Returns:

the function result
apply
(T
the argument
t
)

Applies this function to the given arguments.

public default <T2> ExceptionFunction<T2, R, E>
compose(ExceptionFunction<? super T2, ? extends T, ? extends E> before)

public default ExceptionSupplier<R, E>
compose(ExceptionSupplier<? extends T, ? extends E> before)

Method Detail

andThenback to summary
public default <R2> ExceptionFunction<T, R2, E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after)
andThenback to summary
public default <R2> ExceptionFunction<T, R2, E> andThen(ExceptionBiFunction<? super T, ? super R, ? extends R2, ? extends E> after)
andThenback to summary
public default ExceptionConsumer<T, E> andThen(ExceptionConsumer<? super R, ? extends E> after)
andThenback to summary
public default ExceptionConsumer<T, E> andThen(ExceptionBiConsumer<? super T, ? super R, ? extends E> after)
andThenback to summary
public default ExceptionPredicate<T, E> andThen(ExceptionPredicate<? super R, ? extends E> after)
andThenback to summary
public default ExceptionPredicate<T, E> andThen(ExceptionBiPredicate<? super T, ? super R, ? extends E> after)
applyback to summary
public R apply(T t) throws ExceptionBiConsumer:E

Applies this function to the given arguments.

Parameters
t:T

the argument

Returns:R

the function result

Exceptions
ExceptionBiConsumer:E:
if an exception occurs
composeback to summary
public default <T2> ExceptionFunction<T2, R, E> compose(ExceptionFunction<? super T2, ? extends T, ? extends E> before)
composeback to summary
public default ExceptionSupplier<R, E> compose(ExceptionSupplier<? extends T, ? extends E> before)