Package deu.cse.spring_webmail.mail.dto
Enum Class MailBoxType
- All Implemented Interfaces:
Serializable
,Comparable<MailBoxType>
,Constable
메일함 타입 Enum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MailBoxType
(int value, String mailBoxName, String description) 생성자 -
Method Summary
Modifier and TypeMethodDescriptionstatic MailBoxType
fromValue
(int value) 메일함 번호로부터 해당 Enum 객체를 반환합니다.static MailBoxType
Returns the enum constant of this class with the specified name.static MailBoxType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INBOX
받은 편지함 -
SENT
보낸 편지함 -
DRAFT
임시 보관함 -
TRASH
휴지통
-
-
Field Details
-
value
private final int value메일함 번호 -
mailBoxName
메일함 이름 -
description
메일함 설명
-
-
Constructor Details
-
MailBoxType
생성자- Parameters:
value
- 메일함 번호mailBoxName
- 메일함 이름description
- 메일함 설명
-
-
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
-
fromValue
메일함 번호로부터 해당 Enum 객체를 반환합니다.- Parameters:
value
- 메일함 번호- Returns:
- 메일함 타입
-