public static enum Presence.PresenceType extends Enum<Presence.PresenceType>
| Enum Constant and Description |
|---|
AVAILABLE |
ERROR |
PROBE |
SUBSCRIBE |
SUBSCRIBED |
UNAVAILABLE |
UNSUBSCRIBE |
UNSUBSCRIBED |
| Modifier and Type | Method and Description |
|---|---|
String |
val() |
static Presence.PresenceType |
valueFrom(String val) |
static Presence.PresenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Presence.PresenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Presence.PresenceType ERROR
public static final Presence.PresenceType PROBE
public static final Presence.PresenceType SUBSCRIBE
public static final Presence.PresenceType SUBSCRIBED
public static final Presence.PresenceType AVAILABLE
public static final Presence.PresenceType UNAVAILABLE
public static final Presence.PresenceType UNSUBSCRIBE
public static final Presence.PresenceType UNSUBSCRIBED
public static Presence.PresenceType[] values()
for (Presence.PresenceType c : Presence.PresenceType.values()) System.out.println(c);
public static Presence.PresenceType 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 String val()
public static Presence.PresenceType valueFrom(String val) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2019. All rights reserved.