@ SuppressWarnings ( "unchecked" ) public < A extends Annotation > A getAnnotation ( Class < A > type ) { for ( Annotation annotation : this . annotations ) { if ( type . isInstance ( annotation ) ) { return ( A ) annotation ; } } return null ; }
Return a single associated annotations that could affect binding .