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()booleangetCode()One of four values: "low," "medium," "high," and "urgent".getName()The name of the severity level that corresponds to the severity level code.inthashCode()voidOne of four values: "low," "medium," "high," and "urgent".voidThe 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
-
equals
-
hashCode
-
clone
-