Class EnumValueInfo

java.lang.Object
com.linecorp.armeria.server.docs.EnumValueInfo

@UnstableApi
public final class EnumValueInfo
extends Object
Metadata about an enum value.
  • Constructor Details

    • EnumValueInfo

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

      public EnumValueInfo​(String name, @Nullable Integer intValue)
      Creates a new instance.
      Parameters:
      name - the name of the enum value
      intValue - the integer value of the enum value
    • EnumValueInfo

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

    • name

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

      @Nullable public Integer intValue()
      Returns the integer value 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
    • equals

      public boolean equals​(@Nullable Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object