Class FieldIterable
- java.lang.Object
-
- nl.jqno.equalsverifier.internal.reflection.FieldIterable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<Field>
iterator()
Returns an iterator over all declared fields of the class and all of its superclasses.static FieldIterable
of(Class<?> type)
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 Detail
-
of
public static FieldIterable of(Class<?> type)
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
public 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.- Parameters:
type
- The class that contains the fields over which to iterate.- Returns:
- A FieldIterable.
-
ofIgnoringStatic
public static FieldIterable ofIgnoringStatic(Class<?> type)
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.
-
-