public enum ImportanceLevel extends java.lang.Enum<ImportanceLevel>
Modifier and Type | Method and Description |
---|---|
int |
getDbValue()
Getter
|
java.lang.String |
getName(Context context)
Getter
|
int |
getNameResource()
Getter
|
static ImportanceLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImportanceLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImportanceLevel NONE
public static final ImportanceLevel LOW
public static final ImportanceLevel MEDIUM
public static final ImportanceLevel HIGH
public static ImportanceLevel[] values()
for (ImportanceLevel c : ImportanceLevel.values()) System.out.println(c);
public static ImportanceLevel 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 int getDbValue()
public java.lang.String getName(Context context)
context
- the context@StringRes public int getNameResource()