Class AnnotationImpl

java.lang.Object
org.apache.juneau.annotation.AnnotationImpl
All Implemented Interfaces:
Annotation
Direct Known Subclasses:
TargetedAnnotationImpl

public class AnnotationImpl extends Object implements Annotation
A concrete implementation of an annotation.

Follows the standard Java conventions for equality and hashcode calculation for annotations. Equivalent annotations defined programmatically and declaratively should match for equality and hashcode calculation.

For performance reasons, the hashcode is calculated one time and cached at the end of object creation. Constructors must call the postConstruct() method after all fields have been set to trigger this calculation.

See Also: