forked from nus-cs2113-AY2021S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
/
FitnessLevel.java
37 lines (33 loc) · 1.25 KB
/
FitnessLevel.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package seedu.dietbook.person;
/**
* Represents the physical activity level of a person or the amount of exercise a person engages in.
* An <code>FitnessLevel</code> has a description.
*/
public enum FitnessLevel {
NONE("You hardly engage in any exercise or have a job that requires little to no physical "
+ "activity."),
LOW("You engage in some form of light exercise or have a job that requires some "
+ "physical activity."),
MEDIUM("You engage in moderate amount of exercise or have a job that requires moderate "
+ "physical activity."),
HIGH("You engage in vigorous exercise or have a physically demanding job."),
EXTREME("You engage in extremely vigorous exercise or have an extremely physically demanding"
+ " job.");
private final String description;
/**
* Constructs an <code>FitnessLevel</code> given the description.
*
* @param description The description of the fitness level.
*/
FitnessLevel(String description) {
this.description = description;
}
/**
* Returns the description of the fitness level.
*
* @return The description of the fitness level.
*/
public String getDescription() {
return description;
}
}