Package org.assertj.core.api.iterable
Interface ThrowingExtractor<F,T,EXCEPTION extends Exception>
-
- Type Parameters:
F
- type of element from which the conversion happensT
- target element typeEXCEPTION
- type of exception which might be thrown during conversion
- All Superinterfaces:
Function<F,T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingExtractor<F,T,EXCEPTION extends Exception> extends Function<F,T>
Function converting an element to another element. Used inAbstractIterableAssert.extracting(ThrowingExtractor)
,AbstractObjectArrayAssert.extracting(ThrowingExtractor)
andAtomicReferenceArrayAssert.extracting(ThrowingExtractor)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default T
apply(F input)
T
extractThrows(F input)
-