|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.assertj.core.groups.FieldsOrPropertiesExtractor
public class 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 | |
---|---|
FieldsOrPropertiesExtractor()
|
Method Summary | ||
---|---|---|
static
|
extract(F[] objects,
Extractor<? super F,T> extractor)
Call extract(Iterable, Extractor) after converting objects to an iterable. |
|
static
|
extract(Iterable<? extends F> objects,
Extractor<? super F,T> extractor)
Behavior is described in AbstractIterableAssert.extracting(Extractor) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldsOrPropertiesExtractor()
Method Detail |
---|
public static <F,T> T[] extract(F[] objects, Extractor<? super F,T> extractor)
extract(Iterable, Extractor)
after converting objects to an iterable.
Behavior is described in javadoc AbstractObjectArrayAssert.extracting(Extractor)
public static <F,T> List<T> extract(Iterable<? extends F> objects, Extractor<? super F,T> extractor)
AbstractIterableAssert.extracting(Extractor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |