Package org.apache.juneau.annotation
Class AnnotationImpl
java.lang.Object
org.apache.juneau.annotation.AnnotationImpl
- All Implemented Interfaces:
- Annotation
- Direct Known Subclasses:
- TargetedAnnotationImpl
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:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClass<? extends Annotation>Implements theAnnotation.annotationType()method for child classes.String[]Returns the annotation description.booleaninthashCode()protected voidThis method must be called at the end of initialization to calculate the hashCode one time.toMap()Returns this annotation as a map of key/value pairs.toString()
- 
Constructor Details- 
AnnotationImplConstructor.- Parameters:
- b- The builder used to instantiate the fields of this class.
 
 
- 
- 
Method Details- 
postConstructThis method must be called at the end of initialization to calculate the hashCode one time.
- 
annotationTypeImplements theAnnotation.annotationType()method for child classes.- Specified by:
- annotationTypein interface- Annotation
- Returns:
- This class.
 
- 
descriptionReturns the annotation description.- Returns:
- the annotation description.
- Since:
- 9.2.0
 
- 
hashCode- Specified by:
- hashCodein interface- Annotation
- Overrides:
- hashCodein class- Object
 
- 
equals- Specified by:
- equalsin interface- Annotation
- Overrides:
- equalsin class- Object
 
- 
toMapReturns this annotation as a map of key/value pairs.Useful for debugging. - Returns:
- This annotation as a map of key/value pairs.
 
- 
toString- Specified by:
- toStringin interface- Annotation
- Overrides:
- toStringin class- Object
 
 
-