Class SeverityLevel
- All Implemented Interfaces:
Serializable
,Cloneable
A code and name pair that represent a severity level that can be applied to a support case.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCode()
One of four values: "low," "medium," "high," and "urgent".getName()
The name of the severity level that corresponds to the severity level code.int
hashCode()
void
One of four values: "low," "medium," "high," and "urgent".void
The name of the severity level that corresponds to the severity level code.toString()
Returns a string representation of this object; useful for testing and debugging.One of four values: "low," "medium," "high," and "urgent".The name of the severity level that corresponds to the severity level code.
-
Constructor Details
-
SeverityLevel
public SeverityLevel()
-
-
Method Details
-
setCode
One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in
SeverityLevel.name
.- Parameters:
code
- One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller inSeverityLevel.name
.
-
getCode
One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in
SeverityLevel.name
.- Returns:
- One of four values: "low," "medium," "high," and "urgent". These
values correspond to response times returned to the caller in
SeverityLevel.name
.
-
withCode
One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller in
SeverityLevel.name
.- Parameters:
code
- One of four values: "low," "medium," "high," and "urgent". These values correspond to response times returned to the caller inSeverityLevel.name
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The name of the severity level that corresponds to the severity level code.
- Parameters:
name
- The name of the severity level that corresponds to the severity level code.
-
getName
The name of the severity level that corresponds to the severity level code.
- Returns:
- The name of the severity level that corresponds to the severity level code.
-
withName
The name of the severity level that corresponds to the severity level code.
- Parameters:
name
- The name of the severity level that corresponds to the severity level code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-