public static enum RosterPacket.ItemType extends java.lang.Enum<RosterPacket.ItemType>
| Enum Constant and Description |
|---|
both
The user and subscriber have a mutual interest in each other's presence.
|
from
The subscriber is interested in receiving presence updates from the user.
|
none
The user and subscriber have no interest in each other's presence.
|
remove
The user wishes to stop receiving presence updates from the subscriber.
|
to
The user is interested in receiving presence updates from the subscriber.
|
| Modifier and Type | Method and Description |
|---|---|
static RosterPacket.ItemType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RosterPacket.ItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RosterPacket.ItemType none
public static final RosterPacket.ItemType to
public static final RosterPacket.ItemType from
public static final RosterPacket.ItemType both
public static final RosterPacket.ItemType remove
public static RosterPacket.ItemType[] values()
for (RosterPacket.ItemType c : RosterPacket.ItemType.values()) System.out.println(c);
public static RosterPacket.ItemType 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 null