First page
Back
Continue
Last page
Overview
Graphics
Annotation Type Declaration
/**
* Describes Request-For-Enhancement (RFE) that
* led to presence of annotated API element.
*/
public @interface RequestForEnhancement {
int id();
String synopsis();
String engineer() default "[unassigned]";
String date() default "[unimplemented]";
}
Notes:
• Similar to interface declarations
• Methods define annotation type
elements
• Method return type: primitives,
String
,
Class
, enums, annotations, arrays of same
• Methods have no parameters, throws clause
• Methods can have default value