Enum Class ReportType

Object
Enum<ReportType>
ReportType
All Implemented Interfaces:
Serializable, Comparable<ReportType>, Constable

enum ReportType extends Enum<ReportType>
Type of report.
  • Enum Constant Details

    • FLAT_TYPE

      public static final ReportType FLAT_TYPE
      Report that shows differences by flat type (e.g 2/3 room)
    • PROJECT

      public static final ReportType PROJECT
      Report that shows how many applicants per project
    • AGE

      public static final ReportType AGE
      Report that shows how many applicants by age
    • MARITAL_STATUS

      public static final ReportType MARITAL_STATUS
      Report that shows how many applicants are married vs single
  • Field Details

    • name

      private String name
      Readable name of this type.
    • all

      public static ReportType[] all
      get all possible types
  • Constructor Details

    • ReportType

      private ReportType(String name)
      Internal constructor for enum value
  • Method Details

    • values

      public static ReportType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ReportType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ReportType>
    • fromOrdinal

      public static ReportType fromOrdinal(int o)
      construct from the index of enum