Class EnumValueInfo


  • public final class EnumValueInfo
    extends Object
    Metadata about an enum value.
    • Constructor Detail

      • EnumValueInfo

        public EnumValueInfo​(String name)
        Creates a new instance.
        Parameters:
        name - the name of the enum value
      • EnumValueInfo

        public EnumValueInfo​(String name,
                             @Nullable
                             String docString)
        Creates a new instance.
        Parameters:
        name - the name of the enum value
        docString - the documentation string that describes the enum value
    • Method Detail

      • name

        public String name()
        Returns the name of the enum value.
      • docString

        @Nullable
        public String docString()
        Returns the documentation string that describes the enum value.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object