public static List < Class < ? > > getSuperclasses ( Class < ? > clazz ) { return getSuperclassesAsStream ( clazz ) . collect ( Collectors . toList ( ) ) ; }
Get all superclasses of the given class . If the given class is an interface the result will be empty . The given class will not be included in the result .