mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
ADD: javadoc
This commit is contained in:
1 parent
058021f8d0
commit
91d1fb8cea
1 file changed
+6
@@ -71,10 +71,16 @@ public class AnnotationUtil {
|
|||||||
return typeGet(clazz, annotation) != null;
|
return typeGet(clazz, annotation) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if an element is annotated with an annotation of given type searching meta-annotations.
|
||||||
|
*/
|
||||||
public static boolean metaHas(AnnotatedElement element, Class<?> annotationType) {
|
public static boolean metaHas(AnnotatedElement element, Class<?> annotationType) {
|
||||||
return !metaFindAll(element, annotationType).isEmpty();
|
return !metaFindAll(element, annotationType).isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find all the annotations of a given type searching meta-annotations.
|
||||||
|
*/
|
||||||
public static Set<Annotation> metaFindAll(AnnotatedElement element, Class<?> annotationType) {
|
public static Set<Annotation> metaFindAll(AnnotatedElement element, Class<?> annotationType) {
|
||||||
return metaFindAllFor(element, Collections.singleton(annotationType));
|
return metaFindAllFor(element, Collections.singleton(annotationType));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user