Interface Annotatable

    • Method Detail

      • setAnnotation

        void setAnnotation​(Annotation data)
        Annotates a piece of information to the object.
        Parameters:
        data - Information to be annotated.
      • getAnnotation

        <A extends Annotation> A getAnnotation()
        Retrieves a piece of information that has been annotated.
        Returns:
        The annotation or null if the object has not been annotated.