-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUrgency.java
More file actions
29 lines (24 loc) · 763 Bytes
/
Copy pathUrgency.java
File metadata and controls
29 lines (24 loc) · 763 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
/**
* Enumeration class Urgency - write a description of the enum class here
*
* @author (your name here)
* @version (version number or date here)
*/
public enum Urgency
{
EMERGENCY("Emergency", 5), //Nivel de urgencia alto
IMPORTANT("Important", 3), //Nivel de urgencia medio
NONESSENTIAL("Non essential", 1); //Nivel de urgencia bajo
private String name; //Cadena de caracteres que indica el tipo de urgencia
private int value; //Entero que indica el tipo de urgencia
Urgency (String name, int value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public int getValue() {
return value;
}
}