@ NullSafe public static boolean isAnnotationPresent ( Class < ? extends Annotation > annotation , AnnotatedElement ... members ) { return stream ( ArrayUtils . nullSafeArray ( members , AnnotatedElement . class ) ) . anyMatch ( member -> member != null && member . isAnnotationPresent ( annotation ) ) ; }
Determines whether the specified Annotation meta - data is present on the given annotated members such as fields and methods .