|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.jqno.equalsverifier.util.FieldIterable
public class FieldIterable
Iterable to iterate over all declared fields in a class and, if needed, over all declared fields of its superclasses.
Method Summary | |
---|---|
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 FieldIterator that iterates over all declared fields of type and over the declared fields of all of its
superclasses. |
static FieldIterable |
ofIgnoringSuper(Class<?> type)
Factory method for a FieldIterator that iterates over all declared fields of type , 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 |
Method Detail |
---|
public static FieldIterable of(Class<?> type)
type
and over the declared fields of all of its
superclasses.
type
- The class that contains the fields over which to iterate.
public static FieldIterable ofIgnoringSuper(Class<?> type)
type
, but that ignores the declared fields of its
superclasses.
type
- The class that contains the fields over which to iterate.
public Iterator<Field> iterator()
iterator
in interface Iterable<Field>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |