Enum Class MessageLeaveTypeEnum

java.lang.Object
java.lang.Enum<MessageLeaveTypeEnum>
com.bytedesk.service.message_leave.MessageLeaveTypeEnum
All Implemented Interfaces:
Serializable, Comparable<MessageLeaveTypeEnum>, Constable

public enum MessageLeaveTypeEnum extends Enum<MessageLeaveTypeEnum>
Message leave type enumeration Defines different types of leave messages for categorization and routing
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • MessageLeaveTypeEnum

      private MessageLeaveTypeEnum(String code, String name)
  • Method Details

    • values

      public static MessageLeaveTypeEnum[] 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

      public static MessageLeaveTypeEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
    • getName

      public String getName()
    • fromCode

      public static MessageLeaveTypeEnum fromCode(String code)
      Get enum by code
      Parameters:
      code - the code to search for
      Returns:
      the matching enum or null if not found
    • fromName

      public static MessageLeaveTypeEnum fromName(String name)
      Get enum by name
      Parameters:
      name - the name to search for
      Returns:
      the matching enum or null if not found
    • isValidCode

      public static boolean isValidCode(String code)
      Check if the given code is valid
      Parameters:
      code - the code to validate
      Returns:
      true if valid, false otherwise
    • getDefault

      public static MessageLeaveTypeEnum getDefault()
      Get default type
      Returns:
      the default type (GENERAL)