public <A extends Annotation> A annotation(Class<A> annotationClass) {
        return field.getAnnotation(annotationClass);
    }
public < A extends Annotation > A annotation ( Class < A > annotationClass ) { return field . getAnnotation ( annotationClass ) ; }
Returns the annotation instance for the given annotation type.

@param annotationClass Tha annotation type to retrieve.
@param <A> Type of the annotation.
@return The annotation instance.