Enum DbMailAddress.Type
- java.lang.Object
-
- java.lang.Enum<DbMailAddress.Type>
-
- com.openindex.openestate.tool.mail.db.DbMailAddress.Type
-
- All Implemented Interfaces:
Translatable
,Serializable
,Comparable<DbMailAddress.Type>
- Enclosing class:
- DbMailAddress
public static enum DbMailAddress.Type extends Enum<DbMailAddress.Type> implements Translatable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTranslation()
String
getTranslation(Locale locale)
static DbMailAddress.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static DbMailAddress.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FROM
public static final DbMailAddress.Type FROM
-
TO
public static final DbMailAddress.Type TO
-
CC
public static final DbMailAddress.Type CC
-
BCC
public static final DbMailAddress.Type BCC
-
REPLY_TO
public static final DbMailAddress.Type REPLY_TO
-
-
Method Detail
-
values
public static DbMailAddress.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DbMailAddress.Type c : DbMailAddress.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DbMailAddress.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getTranslation
public String getTranslation()
- Specified by:
getTranslation
in interfaceTranslatable
-
getTranslation
public String getTranslation(Locale locale)
- Specified by:
getTranslation
in interfaceTranslatable
-
-