Enum Class TemplateMessage
- All Implemented Interfaces:
Serializable
,Comparable<TemplateMessage>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor history's watchers.For history's watchers (with sender name).For individual messages.For mentioned people on histories.For mentioned people on histories (with sender name). -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getMessage
(Object... params) static TemplateMessage
Returns the enum constant of this class with the specified name.static TemplateMessage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_TEMPLATE
-
NEW_MESSAGE
For individual messages. -
REPLY
For mentioned people on histories. -
REPLY_WITH_SENDER_NAME
For mentioned people on histories (with sender name). -
HISTORY_UPDATED
For history's watchers. -
HISTORY_UPDATED_WITH_SENDER_NAME
For history's watchers (with sender name).
-
-
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
-
getMessage
-
getGenericName
-