Class RecordComponentDescription.Token

    • Field Detail

      • name

        private final java.lang.String name
        The token's name.
      • annotations

        private final java.util.List<? extends AnnotationDescription> annotations
        The token's annotations.
    • Constructor Detail

      • Token

        public Token​(java.lang.String name,
                     TypeDescription.Generic type)
        Creates a new record component token without annotations.
        Parameters:
        name - The token's name.
        type - The token's type.
      • Token

        public Token​(java.lang.String name,
                     TypeDescription.Generic type,
                     java.util.List<? extends AnnotationDescription> annotations)
        Creates a new record component token.
        Parameters:
        name - The token's name.
        type - The token's type.
        annotations - The token's annotations.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the token's name.
        Returns:
        The token's name.
      • getAnnotations

        public AnnotationList getAnnotations()
        Returns the token's annotations.
        Returns:
        The token's annotations.
      • hashCode

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object