Top Description Methods
org.assertj.core.api

public Interface ThrowingConsumer<T>

extends Consumer<T>
Annotations
@FunctionalInterface
Type Parameters
<T>
consumed type
Imports
java.util.function.Consumer

Consumer that deals with checked exceptions by rethrowing them as RuntimeException.

More precisely, RuntimeException and AssertionError are rethrown as they are, while any other Throwable is wrapped in a RuntimeException and rethrown.

Method Summary

Modifier and TypeMethod and Description
public default void
accept(final T
the input argument
input
)

Implements java.util.function.Consumer.accept.

Performs this operation on the given argument.
public void
acceptThrows(T input)

Inherited from java.util.function.Consumer:
andThen

Method Detail

acceptback to summary
public default void accept(final T input)

Implements java.util.function.Consumer.accept.

Doc from java.util.function.Consumer.accept.

Performs this operation on the given argument.

Parameters
input:T

the input argument

Annotations
@Override
acceptThrowsback to summary
public void acceptThrows(T input) throws Throwable