Class EnumDef.ElementDef

java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.typedefs.EnumDef.ElementDef
All Implemented Interfaces:
Serializable
Enclosing class:
EnumDef

public static class EnumDef.ElementDef extends AtlanObject
Structure for definition of a valid value in an enumeration.
See Also:
  • Constructor Details

  • Method Details

    • of

      public static EnumDef.ElementDef of(int ordinal, String value)
      Build a valid value definition.
      Parameters:
      ordinal - position of the valid value definition in the overall list
      value - of the valid value
      Returns:
      the valid value definition
    • from

      protected static List<EnumDef.ElementDef> from(List<String> values)
      Build a list of valid values from the provided list of strings.
      Parameters:
      values - to enumerate as valid values
      Returns:
      a list of the valid values
    • builder

      public static EnumDef.ElementDef.ElementDefBuilder<?,?> builder()
    • getValue

      public String getValue()
      Value of the element (the valid value).
    • getDescription

      public String getDescription()
      (Optional) Description of the element.
    • getOrdinal

      public Integer getOrdinal()
      Position of the element within the list of valid values.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AtlanObject
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AtlanObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AtlanObject
    • toString

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class AtlanObject