Package org.assertj.core.groups
Class FieldsOrPropertiesExtractor
- java.lang.Object
-
- org.assertj.core.groups.FieldsOrPropertiesExtractor
-
public class FieldsOrPropertiesExtractor extends Object
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.- Author:
- Joel Costigliola, Mateusz Haligowski
-
-
Constructor Summary
Constructors Constructor Description FieldsOrPropertiesExtractor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <F,T>
T[]extract(F[] objects, Extractor<? super F,T> extractor)
Callextract(Iterable, Extractor)
after converting objects to an iterable.static <F,T>
List<T>extract(Iterable<? extends F> objects, Extractor<? super F,T> extractor)
Behavior is described inAbstractIterableAssert.extracting(Extractor)
-
-
-
Method Detail
-
extract
public static <F,T> T[] extract(F[] objects, Extractor<? super F,T> extractor)
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)
-
-