public enum Subcategory extends java.lang.Enum<Subcategory> implements java.io.Serializable
Enum Constant and Description |
---|
COMPLETED |
SUGGESTION |
Modifier and Type | Method and Description |
---|---|
int |
getIcon()
Getter
|
java.lang.String |
getName(Context context)
Getter
|
static Subcategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Subcategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Subcategory COMPLETED
public static final Subcategory SUGGESTION
public static Subcategory[] values()
for (Subcategory c : Subcategory.values()) System.out.println(c);
public static Subcategory 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 getIcon()
public java.lang.String getName(Context context)
context
- the context