Package org.xmpp.packet
Enum Presence.Show
- All Implemented Interfaces:
Serializable,Comparable<Presence.Show>,java.lang.constant.Constable
- Enclosing class:
- Presence
Represents the presence "show" value. Note: a
null "show" value is the
default, which means "available". Valid values are:
Presence.Show.chat-- the entity or resource is actively interested in chatting.Presence.Show.away-- the entity or resource is temporarily away.Presence.Show.dnd-- the entity or resource is busy (dnd = "Do Not Disturb").Presence.Show.xa-- the entity or resource is away for an extended period (xa = "eXtended Away").
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Presence.ShowReturns the enum constant of this type with the specified name.static Presence.Show[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
chat
The entity or resource is actively interested in chatting. -
away
The entity or resource is temporarily away. -
xa
The entity or resource is away for an extended period (xa = "eXtended Away"). -
dnd
The entity or resource is busy (dnd = "Do Not Disturb").
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-