Interface Enumeration

All Superinterfaces:
DocumentedType, GeneratedType, Identifiable<JavaTypeName>, Type

public interface Enumeration extends GeneratedType
Interface provide methods for reading data of enumeration class.
  • Method Details

    • getValues

      List<Enumeration.Pair> getValues()
      Returns list of the couples - name and value.
      Returns:
      list of the enumeration pairs.
    • toFormattedString

      String toFormattedString()
      Formats enumeration according to rules of the programming language.
      Returns:
      string with source code in some programming language