public static enum PrivacyRule.Action extends java.lang.Enum<PrivacyRule.Action>
Defines the action to perform with the privacy item: either allow or deny communication.
| Enum Constant and Description |
|---|
ALLOW
Allows communication.
|
DENY
Denies (blocks) communication.
|
| Modifier and Type | Method and Description |
|---|---|
static PrivacyRule.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrivacyRule.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrivacyRule.Action ALLOW
public static final PrivacyRule.Action DENY
public static PrivacyRule.Action[] values()
for (PrivacyRule.Action c : PrivacyRule.Action.values()) System.out.println(c);
public static PrivacyRule.Action 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 nullCopyright © 2014–2019 XMPP.rocks. All rights reserved.