public < T > T getAnnotation ( Class < T > annotationClass ) { for ( Annotation annotation : m_annotations ) { if ( annotation . annotationType ( ) . equals ( annotationClass ) ) { return ( T ) annotation ; } } return null ; }
Returns this element s annotation for the specified type if such an annotation is present else null