Package org.assertj.core.groups
Class FieldsOrPropertiesExtractor
java.lang.Object
org.assertj.core.groups.FieldsOrPropertiesExtractor
Understands how to retrieve fields or values from a collection/array of objects.
You just have to give the field/property name or an Extractor
implementation, a collection/array of objects
and it will extract the list of field/values from the given objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <F,
T> T[] Callextract(Iterable, Extractor)
after converting objects to an iterable.static <F,
T> List<T> Behavior is described inAbstractIterableAssert.extracting(Extractor)
-
Constructor Details
-
FieldsOrPropertiesExtractor
public FieldsOrPropertiesExtractor()
-
-
Method Details
-
extract
Callextract(Iterable, Extractor)
after converting objects to an iterable.Behavior is described in javadoc
AbstractObjectArrayAssert.extracting(Extractor)
-
extract
public static <F,T> List<T> extract(Iterable<? extends F> objects, Extractor<? super F, T> extractor) Behavior is described inAbstractIterableAssert.extracting(Extractor)
-