Package main.model.project
Enum Class ProjectStatus
- All Implemented Interfaces:
- Serializable,- Comparable<ProjectStatus>,- Constable
This enum represents the status of a project
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe project is allocated to a studentThe project is available for allocationThe project is reserved for a studentThe project is unavailable for allocation
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the status of the project in a colorful stringstatic ProjectStatusReturns the enum constant of this class with the specified name.static ProjectStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
AVAILABLEThe project is available for allocation
- 
RESERVEDThe project is reserved for a student
- 
UNAVAILABLEThe project is unavailable for allocation
- 
ALLOCATEDThe project is allocated to a student
 
- 
- 
Constructor Details- 
ProjectStatusprivate ProjectStatus()
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
showColorfulStringGet the status of the project in a colorful string- Returns:
- the status of the project in a colorful string
 
 
-