/** * @return a list of all superclasses and implemented interfaces by the supplied class, * recursively to the base, up to but excluding Object.class. These will be listed in order from * the supplied class, all concrete superclasses in ascending order, and then finally all * interfaces in recursive ascending order.<br/> * This will include duplicates if any superclasses implement the same classes */ public static List<Class<?>> getSuperclasses(Class<?> clazz) { return ClassLoaderUtils.getSuperclasses(clazz); }
/** * @return a list of all superclasses and implemented interfaces by the supplied class, * recursively to the base, up to but excluding Object.class. These will be listed in order from * the supplied class, all concrete superclasses in ascending order, and then finally all * interfaces in recursive ascending order.<br/> * This will include duplicates if any superclasses implement the same classes */ public static List<Class<?>> getSuperclasses(Class<?> clazz) { return ClassLoaderUtils.getSuperclasses(clazz); }