public static enum RosterItem.SubType extends Enum<RosterItem.SubType>
Enum Constant and Description |
---|
BOTH
The roster item and owner have a mutual subscription.
|
FROM
The roster item has a subscription to the roster owner's presence.
|
NONE
No subscription is established.
|
REMOVE
Indicates the roster item should be removed.
|
TO
The roster owner has a subscription to the roster item's presence.
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static RosterItem.SubType |
getTypeFromInt(int value) |
int |
getValue() |
static RosterItem.SubType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RosterItem.SubType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RosterItem.SubType REMOVE
public static final RosterItem.SubType NONE
public static final RosterItem.SubType TO
public static final RosterItem.SubType FROM
public static final RosterItem.SubType BOTH
public static RosterItem.SubType[] values()
for (RosterItem.SubType c : RosterItem.SubType.values()) System.out.println(c);
public static RosterItem.SubType 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 int getValue()
public String getName()
public static RosterItem.SubType getTypeFromInt(int value)
Copyright © 2003-2008 Jive Software.