Add enum for seasons of the year

Reduces the chance of user error to near 0 as they will choose from an enum instead of string
pull/9/head
Hammy 3 years ago
parent 3733925aa0
commit 8e64742fde

@ -0,0 +1,22 @@
package me.goudham.util;
/**
* Listing all 4 {@link Season}'s
*
*/
public enum Season {
SPRING("spring"),
SUMMER("summer"),
FALL("fall"),
WINTER("winter");
private final String season;
Season(String season) {
this.season = season;
}
public String getSeason() {
return season;
}
}
Loading…
Cancel
Save