Package sc2002.FCS1.grp2
Enum Class ReportType
- All Implemented Interfaces:
Serializable,Comparable<ReportType>,Constable
Type of report.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReport that shows how many applicants by ageReport that shows differences by flat type (e.g 2/3 room)Report that shows how many applicants are married vs singleReport that shows how many applicants per project -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ReportType[]get all possible typesprivate StringReadable name of this type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateReportType(String name) Internal constructor for enum value -
Method Summary
Modifier and TypeMethodDescriptionstatic ReportTypefromOrdinal(int o) construct from the index of enumtoString()static ReportTypeReturns the enum constant of this class with the specified name.static ReportType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLAT_TYPE
Report that shows differences by flat type (e.g 2/3 room) -
PROJECT
Report that shows how many applicants per project -
AGE
Report that shows how many applicants by age -
MARITAL_STATUS
Report that shows how many applicants are married vs single
-
-
Field Details
-
name
Readable name of this type. -
all
get all possible types
-
-
Constructor Details
-
ReportType
Internal constructor for enum value
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<ReportType>
-
fromOrdinal
construct from the index of enum
-