public static enum RosterPacket.ItemStatus extends java.lang.Enum<RosterPacket.ItemStatus>
Enum Constant and Description |
---|
subscribe
Request to subscribe
|
unsubscribe
Request to unsubscribe
|
Modifier and Type | Field and Description |
---|---|
static RosterPacket.ItemStatus |
SUBSCRIPTION_PENDING |
static RosterPacket.ItemStatus |
UNSUBSCRIPTION_PENDING |
Modifier and Type | Method and Description |
---|---|
static RosterPacket.ItemStatus |
fromString(java.lang.String s) |
static RosterPacket.ItemStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RosterPacket.ItemStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RosterPacket.ItemStatus subscribe
public static final RosterPacket.ItemStatus unsubscribe
public static final RosterPacket.ItemStatus SUBSCRIPTION_PENDING
public static final RosterPacket.ItemStatus UNSUBSCRIPTION_PENDING
public static RosterPacket.ItemStatus[] values()
for (RosterPacket.ItemStatus c : RosterPacket.ItemStatus.values()) System.out.println(c);
public static RosterPacket.ItemStatus 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 static RosterPacket.ItemStatus fromString(java.lang.String s)