public static < T extends Annotation > boolean isAnnotationPresent ( Class < T > annotation , List < ? extends HasAnnotations > hasAnnotationsList ) { for ( HasAnnotations accessor : hasAnnotationsList ) { if ( accessor . isAnnotationPresent ( annotation ) ) { return true ; } } return false ; }
Returns true when one of the type has the specified annotation