Enum Constant and Description |
---|
ALARM |
CALL |
EMAIL |
ERR |
EVENT |
MSG |
PROMO |
RECOMMENDATION |
SERVICE |
SOCIAL |
STATUS |
SYS |
TRANSPORT |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<Category> |
find(java.lang.String identifier) |
java.lang.String |
getCategory() |
static Category |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Category[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Category ALARM
public static final Category CALL
public static final Category EMAIL
public static final Category ERR
public static final Category EVENT
public static final Category MSG
public static final Category PROMO
public static final Category RECOMMENDATION
public static final Category SERVICE
public static final Category SOCIAL
public static final Category STATUS
public static final Category SYS
public static final Category TRANSPORT
public static Category[] values()
for (Category c : Category.values()) System.out.println(c);
public static Category valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getCategory()
public static java.util.Optional<Category> find(java.lang.String identifier)