public static enum Presence.Mode extends Enum<Presence.Mode>
Enum Constant and Description |
---|
available
Available (the default).
|
away
Away.
|
chat
Free to chat.
|
dnd
Do not disturb.
|
xa
Away for an extended period of time.
|
Modifier and Type | Method and Description |
---|---|
static Presence.Mode |
fromString(String string)
Converts a String into the corresponding types.
|
static Presence.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Presence.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Presence.Mode chat
public static final Presence.Mode available
public static final Presence.Mode away
public static final Presence.Mode xa
public static final Presence.Mode dnd
public static Presence.Mode[] values()
for (Presence.Mode c : Presence.Mode.values()) System.out.println(c);
public static Presence.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Presence.Mode fromString(String string)
string
- the String value to covert.IllegalArgumentException
- when not able to parse the string parameterNullPointerException
- if the string is null