Class AnnotationMember

  • All Implemented Interfaces:
    java.lang.Comparable<AnnotationMember>

    public class AnnotationMember
    extends java.lang.Object
    implements java.lang.Comparable<AnnotationMember>
    A member of an annotation.
    • Constructor Detail

      • AnnotationMember

        public AnnotationMember​(java.lang.String id,
                                AnnotationValue value)
        Builds an annotation member from its identifier and its annotation value.
        Parameters:
        id - the identifier
        value - the annotation value
    • Method Detail

      • getId

        public java.lang.String getId()
        Yields the identifier of this annotation member.
        Returns:
        the identifier of this annotation member
      • getValue

        public AnnotationValue getValue()
        Yields the annotation value of this annotation member.
        Returns:
        the annotation value of this annotation member
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object