Enum SendLastPublishedItem
- java.lang.Object
-
- java.lang.Enum<SendLastPublishedItem>
-
- rocks.xmpp.extensions.pubsub.model.SendLastPublishedItem
-
- All Implemented Interfaces:
Serializable
,Comparable<SendLastPublishedItem>
public enum SendLastPublishedItem extends Enum<SendLastPublishedItem>
Defines when to send the last published item.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEVER
Never.ON_SUB
When a new subscription is processed.ON_SUB_AND_PRESENCE
When a new subscription is processed and whenever a subscriber comes online.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SendLastPublishedItem
valueOf(String name)
Returns the enum constant of this type with the specified name.static SendLastPublishedItem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final SendLastPublishedItem NEVER
Never.
-
ON_SUB
public static final SendLastPublishedItem ON_SUB
When a new subscription is processed.
-
ON_SUB_AND_PRESENCE
public static final SendLastPublishedItem ON_SUB_AND_PRESENCE
When a new subscription is processed and whenever a subscriber comes online.
-
-
Method Detail
-
values
public static SendLastPublishedItem[] 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 (SendLastPublishedItem c : SendLastPublishedItem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SendLastPublishedItem 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
-
-