Enum ContactExchange.Item.Action
- java.lang.Object
-
- java.lang.Enum<ContactExchange.Item.Action>
-
- rocks.xmpp.extensions.rosterx.model.ContactExchange.Item.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<ContactExchange.Item.Action>
- Enclosing class:
- ContactExchange.Item
public static enum ContactExchange.Item.Action extends Enum<ContactExchange.Item.Action>
The action for a roster item exchange.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContactExchange.Item.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContactExchange.Item.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final ContactExchange.Item.Action ADD
Suggests roster item addition.- See Also:
- 3.1 Suggesting Roster Item Addition
-
DELETE
public static final ContactExchange.Item.Action DELETE
Suggests roster item deletion.- See Also:
- 3.2 Suggesting Roster Item Deletion
-
MODIFY
public static final ContactExchange.Item.Action MODIFY
Suggests roster item modification.- See Also:
- 3.3 Suggesting Roster Item Modification
-
-
Method Detail
-
values
public static ContactExchange.Item.Action[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContactExchange.Item.Action c : ContactExchange.Item.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContactExchange.Item.Action valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-