Top Description Methods
org.assertj.core.api.iterable

public Interface ThrowingExtractor<F, T, EXCEPTION extends Exception>

extends Function<F, T>
Annotations
@FunctionalInterface
Type Parameters
<F>
type of element from which the conversion happens
<T>
target element type
<EXCEPTION>
type of exception which might be thrown during conversion
Imports
java.util.function.Function, org.assertj.core.api.AtomicReferenceArrayAssert, .ListAssert, .ObjectArrayAssert

Function converting an element to another element. Used in ListAssert#extracting(ThrowingExtractor), ObjectArrayAssert#extracting(ThrowingExtractor) and AtomicReferenceArrayAssert#extracting(ThrowingExtractor).

Method Summary

Modifier and TypeMethod and Description
public default T
apply(final F
the function argument
input
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.
public T
extractThrows(F input)

Inherited from java.util.function.Function:
andThencomposeidentity

Method Detail

applyback to summary
public default T apply(final F input)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
input:F

the function argument

Returns:T

the function result

Annotations
@Override
extractThrowsback to summary
public T extractThrows(F input) throws ThrowingExtractor:EXCEPTION