-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRegion.java
More file actions
46 lines (38 loc) · 734 Bytes
/
Region.java
File metadata and controls
46 lines (38 loc) · 734 Bytes
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
38
39
40
41
42
43
44
45
46
/**
* Lab 8
*
* An enumeration containing a subset of the
* possible regions a Contestant can be from.
*
* @author Stephen
* @version 2018-03-12
*/
public enum Region
{
/**
* The Contestant is from the North region.
*/
NORTH,
/**
* The Contestant is from the East region.
*/
EAST,
/**
* The Contestant is from the South region.
*/
SOUTH,
/**
* The Contestant is from the West region.
*/
WEST;
/**
* Returns the region's name in lowercase.
*
* @return The name of the region as a lowercase string.
*/
@Override
public String toString()
{
return name().toLowerCase();
}
}