Top Description Methods
org.wildfly.common.function

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

Known Direct Implementers
org.wildfly.common.function.Functions.ExceptionRunnableConsumer, org.wildfly.common.function.Functions.RunnableExceptionConsumer, org.wildfly.common.function.Functions.DiscardingConsumer
Annotations
@FunctionalInterface
Imports
org.wildfly.common.Assert

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

Method Summary

Modifier and TypeMethod and Description
public void
accept(T
the argument
t
)

Performs this operation on the given argument.

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

public default ExceptionConsumer<T, E>
compose(ExceptionConsumer<? super T, ? extends E> before)

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

Method Detail

acceptback to summary
public void accept(T t) throws ExceptionBiConsumer:E

Performs this operation on the given argument.

Parameters
t:T

the argument

Exceptions
ExceptionBiConsumer:E:
if an exception occurs
andThenback to summary
public default ExceptionConsumer<T, E> andThen(ExceptionConsumer<? super T, ? extends E> after)
composeback to summary
public default ExceptionConsumer<T, E> compose(ExceptionConsumer<? super T, ? extends E> before)
composeback to summary
public default ExceptionRunnable<E> compose(ExceptionSupplier<? extends T, ? extends E> before)