/** * Same as {@link #getAnnotationsMap(Class, Type)} except returns results in parent-to-child order. * * @param <T> The annotation class type. * @param a The annotation class type. * @param t The class being searched. * @return The found matches, or an empty map if annotation was not found. */ public static <T extends Annotation> LinkedHashMap<Class<?>,T> getAnnotationsMapParentFirst(Class<T> a, Type t) { return CollectionUtils.reverse(getAnnotationsMap(a, t)); }
/** * Same as {@link #getAnnotationsMap(Class, Type)} except returns results in parent-to-child order. * * @param <T> The annotation class type. * @param a The annotation class type. * @param t The class being searched. * @return The found matches, or an empty map if annotation was not found. */ public static <T extends Annotation> LinkedHashMap<Class<?>,T> getAnnotationsMapParentFirst(Class<T> a, Type t) { return CollectionUtils.reverse(getAnnotationsMap(a, t)); }
/** * Same as {@link #getAnnotationsMap(Class, Type)} except returns results in parent-to-child order. * * @param <T> The annotation class type. * @param a The annotation class type. * @param t The class being searched. * @return The found matches, or an empty map if annotation was not found. */ public static <T extends Annotation> LinkedHashMap<Class<?>,T> getAnnotationsMapParentFirst(Class<T> a, Type t) { return CollectionUtils.reverse(getAnnotationsMap(a, t)); }