Enum Class MessageLeaveTypeEnum
- All Implemented Interfaces:
Serializable
,Comparable<MessageLeaveTypeEnum>
,Constable
Message leave type enumeration
Defines different types of leave messages for categorization and routing
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageLeaveTypeEnum
Get enum by codestatic MessageLeaveTypeEnum
Get enum by namegetCode()
static MessageLeaveTypeEnum
Get default typegetName()
static boolean
isValidCode
(String code) Check if the given code is validstatic MessageLeaveTypeEnum
Returns the enum constant of this class with the specified name.static MessageLeaveTypeEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSULTATION
-
COMPLAINT
-
SUGGESTION
-
FEEDBACK
-
COOPERATION
-
RECRUITMENT
-
TECHNICAL_SUPPORT
-
SALES_INQUIRY
-
BILLING
-
ACCOUNT
-
FEATURE_REQUEST
-
BUG_REPORT
-
GENERAL
-
OTHER
-
-
Field Details
-
code
-
name
-
-
Constructor Details
-
MessageLeaveTypeEnum
-
-
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
-
getCode
-
getName
-
fromCode
Get enum by code- Parameters:
code
- the code to search for- Returns:
- the matching enum or null if not found
-
fromName
Get enum by name- Parameters:
name
- the name to search for- Returns:
- the matching enum or null if not found
-
isValidCode
Check if the given code is valid- Parameters:
code
- the code to validate- Returns:
- true if valid, false otherwise
-
getDefault
Get default type- Returns:
- the default type (GENERAL)
-