Enum Class MailBoxType

java.lang.Object
java.lang.Enum<MailBoxType>
deu.cse.spring_webmail.mail.dto.MailBoxType
All Implemented Interfaces:
Serializable, Comparable<MailBoxType>, Constable

public enum MailBoxType extends Enum<MailBoxType>
메일함 타입 Enum
  • Enum Constant Details

    • INBOX

      public static final MailBoxType INBOX
      받은 편지함
    • SENT

      public static final MailBoxType SENT
      보낸 편지함
    • DRAFT

      public static final MailBoxType DRAFT
      임시 보관함
    • TRASH

      public static final MailBoxType TRASH
      휴지통
  • Field Details

    • value

      private final int value
      메일함 번호
    • mailBoxName

      private final String mailBoxName
      메일함 이름
    • description

      private final String description
      메일함 설명
  • Constructor Details

    • MailBoxType

      private MailBoxType(int value, String mailBoxName, String description)
      생성자
      Parameters:
      value - 메일함 번호
      mailBoxName - 메일함 이름
      description - 메일함 설명
  • Method Details

    • values

      public static MailBoxType[] 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 MailBoxType 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
    • fromValue

      public static MailBoxType fromValue(int value)
      메일함 번호로부터 해당 Enum 객체를 반환합니다.
      Parameters:
      value - 메일함 번호
      Returns:
      메일함 타입