private static boolean hasAnnotation ( Annotation [ ] parameterAnnotations , Class < ? extends Annotation > annotationClass ) { for ( Annotation annotation : parameterAnnotations ) { if ( annotation . annotationType ( ) . equals ( annotationClass ) ) { return true ; } } return false ; }
Returns true if any annotation in parameterAnnotations matches annotationClass .