Package de.aristaflow.adept2.model.mail
Enum Class EmailPriority
- All Implemented Interfaces:
Serializable,Comparable<EmailPriority>,java.lang.constant.Constable
The possible priorities for e-mails.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EmailPriorityGets theEmailPriorityconforming to the designated string value (ignoring its case).protected StringGets the string value of this priority.intvalue()Gets the integer value of this priority.static EmailPriorityvalueOf(int intValue) Gets theEmailPriorityconforming to the designated integer value.static EmailPriorityReturns the enum constant of this class with the specified name.static EmailPriority[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VERY_HIGH
-
HIGH
-
NORMAL
-
LOW
-
VERY_LOW
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value()Gets the integer value of this priority.- Returns:
- The integer value of this priority.
-
getStringValue
Gets the string value of this priority.- Returns:
- The string value of this priority.
-
valueOf
Gets theEmailPriorityconforming to the designated integer value.- Parameters:
intValue- The integer value for which to get the conformingEmailPriority.- Returns:
- The
EmailPriorityconforming to the designated integer value. - Throws:
IllegalArgumentException- If the designated integer value is not between 1 and 5, anIllegalArgumentExceptionwill be thrown.
-
from
Gets theEmailPriorityconforming to the designated string value (ignoring its case).- Parameters:
stringValue- The string value for which to get the conformingEmailPriority.- Returns:
- The
EmailPriorityconforming to the designated string value. - Throws:
IllegalArgumentException- If the designated string value is not a valid representation of a priority, anIllegalArgumentExceptionwill be thrown.
-