Enum Category
- java.lang.Object
-
- java.lang.Enum<Category>
-
- rocks.xmpp.extensions.activity.model.Category
-
- All Implemented Interfaces:
Serializable
,Comparable<Category>
public enum Category extends Enum<Category>
Represents the category or general activity.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOING_CHORES
Doing chores.DRINKING
Drinking.EATING
Eating.EXERCISING
Exercising.GROOMING
Grooming.HAVING_APPOINTMENT
Having appointment.INACTIVE
Inactive.RELAXING
Relaxing.TALKING
Talking.TRAVELING
Traveling.UNDEFINED
Undefined.WORKING
Working.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Category
valueOf(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.
-
-
-
Enum Constant Detail
-
DOING_CHORES
public static final Category DOING_CHORES
Doing chores.
-
DRINKING
public static final Category DRINKING
Drinking.
-
EATING
public static final Category EATING
Eating.
-
EXERCISING
public static final Category EXERCISING
Exercising.
-
GROOMING
public static final Category GROOMING
Grooming.
-
HAVING_APPOINTMENT
public static final Category HAVING_APPOINTMENT
Having appointment.
-
INACTIVE
public static final Category INACTIVE
Inactive.
-
RELAXING
public static final Category RELAXING
Relaxing.
-
TALKING
public static final Category TALKING
Talking.
-
TRAVELING
public static final Category TRAVELING
Traveling.
-
UNDEFINED
public static final Category UNDEFINED
Undefined.
-
WORKING
public static final Category WORKING
Working.
-
-
Method Detail
-
values
public static Category[] 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 (Category c : Category.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Category 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
-
-