public class Severity extends Object implements Comparable<Severity>
Severity class.
| Constructor and Description |
|---|
Severity(int id,
String label,
String color)
Constructor for Severity.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Severity otherSev)
Compares the Severity to another in input by ids.
|
String |
getColor()
Getter for the field
color. |
int |
getId()
Getter for the field
id. |
String |
getLabel()
Getter for the field
label. |
boolean |
isFlash()
isFlash
|
void |
setColor(String color)
Setter for the field
color. |
void |
setFlash(boolean flash)
Setter for the field
flash. |
void |
setId(int id)
Setter for the field
id. |
void |
setLabel(String label)
Setter for the field
label. |
public int compareTo(Severity otherSev)
compareTo in interface Comparable<Severity>public void setColor(String color)
Setter for the field color.
color - a String object.public int getId()
Getter for the field id.
public void setId(int id)
Setter for the field id.
id - a int.public void setLabel(String label)
Setter for the field label.
label - a String object.public boolean isFlash()
isFlash
public void setFlash(boolean flash)
Setter for the field flash.
flash - a boolean.Copyright © 2015. All rights reserved.