public static < T > List < Class < ? > > getAncestry ( final Class < T > clazz ) { return ClassAncestry . getAncestry ( clazz ) ; }
Helper method that walks superclass and interface graph superclasses first then interfaces to compute an ancestry list . Super types are visited left to right . Duplicates are removed such that no Class will appear in the list before one of its subtypes .