Package org.jivesoftware.smackx.mood
Enum Mood
- java.lang.Object
-
- java.lang.Enum<Mood>
-
- org.jivesoftware.smackx.mood.Mood
-
- All Implemented Interfaces:
Serializable
,Comparable<Mood>
public enum Mood extends Enum<Mood>
Moods specified by XEP-0107: User Mood.- See Also:
- XEP-0107 ยง3: Mood Values
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Mood
valueOf(String name)
Returns the enum constant of this type with the specified name.static Mood[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
contemplative
public static final Mood contemplative
-
disappointed
public static final Mood disappointed
-
distracted
public static final Mood distracted
-
embarrassed
public static final Mood embarrassed
-
flirtatious
public static final Mood flirtatious
-
frustrated
public static final Mood frustrated
-
humiliated
public static final Mood humiliated
-
interested
public static final Mood interested
-
intoxicated
public static final Mood intoxicated
-
invincible
public static final Mood invincible
-
remorseful
public static final Mood remorseful
-
spontaneous
public static final Mood spontaneous
-
-
Method Detail
-
values
public static Mood[] 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 (Mood c : Mood.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Mood 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
-
-