public static enum RosterItem.Subscription extends Enum<RosterItem.Subscription>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullpublic boolean isFrom()
public boolean isTo()
Copyright © 2006–2023 Tigase. All rights reserved.