Class FieldIterable
java.lang.Object
nl.jqno.equalsverifier.internal.reflection.FieldIterable
Iterable to iterate over all declared fields in a class and, if needed, over all declared fields
of its superclasses.
-
Method Summary
Modifier and TypeMethodDescriptioniterator()
Returns an iterator over all declared fields of the class and all of its superclasses.static FieldIterable
Factory method for a FieldIterable that iterates over all declared fields oftype
and over the declared fields of all of its superclasses.static FieldIterable
ofIgnoringStatic
(Class<?> type) Factory method for a FieldIterable that iterates over all declared fields oftype
, but that ignores its static fields.static FieldIterable
ofIgnoringSuper
(Class<?> type) Factory method for a FieldIterable that iterates over all declared fields oftype
, but that ignores the declared fields of its superclasses.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
of
Factory method for a FieldIterable that iterates over all declared fields oftype
and over the declared fields of all of its superclasses.- Parameters:
type
- The class that contains the fields over which to iterate.- Returns:
- A FieldIterable.
-
ofIgnoringSuper
Factory method for a FieldIterable that iterates over all declared fields oftype
, but that ignores the declared fields of its superclasses.- Parameters:
type
- The class that contains the fields over which to iterate.- Returns:
- A FieldIterable.
-
ofIgnoringStatic
Factory method for a FieldIterable that iterates over all declared fields oftype
, but that ignores its static fields.- Parameters:
type
- The class that contains the fields over which to iterate.- Returns:
- A FieldIterable.
-
iterator
Returns an iterator over all declared fields of the class and all of its superclasses.
-