Class XAnnotated

  • Direct Known Subclasses:
    XAnnotatedElement, XParameter

    public abstract class XAnnotated
    extends Object
    Defines an item with an array of the associated annotations.
    Author:
    Aleksei Valikov
    • Constructor Detail

      • XAnnotated

        public XAnnotated​(XAnnotation<?>[] xannotations)
        Constructs an annotated item.
        Parameters:
        xannotations - item annotations, may be null
    • Method Detail

      • getXAnnotations

        public XAnnotation<?>[] getXAnnotations()
        Returns the annotations associated with the item.
        Returns:
        Item annotations.
      • getAnnotations

        public Annotation[] getAnnotations()
        Returns annotations for this annotated item.
        Returns:
        Array of annotations.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object