|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RosterItem.Subscription>
tigase.jaxmpp.core.client.xmpp.modules.roster.RosterItem.Subscription
public static enum RosterItem.Subscription
Susbcription state.
| Enum Constant Summary | |
|---|---|
both
The user and the contact have subscriptions to each other's presence (also called a "mutual subscription"). |
|
from
The contact has a subscription to the user's presence, but the user does not have a subscription to the contact's presence. |
|
none
The user does not have a subscription to the contact's presence, and the contact does not have a subscription to the user's presence. |
|
remove
|
|
to
The user has a subscription to the contact's presence, but the contact does not have a subscription to the user's presence. |
|
| Method Summary | |
|---|---|
boolean |
isFrom()
|
boolean |
isTo()
|
static RosterItem.Subscription |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RosterItem.Subscription[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RosterItem.Subscription both
public static final RosterItem.Subscription from
public static final RosterItem.Subscription none
public static final RosterItem.Subscription remove
public static final RosterItem.Subscription to
| Method Detail |
|---|
public static RosterItem.Subscription[] values()
for (RosterItem.Subscription c : RosterItem.Subscription.values()) System.out.println(c);
public static RosterItem.Subscription valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isFrom()
public boolean isTo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||