- All Implemented Interfaces:
Serializable
,Comparable<ConditionMode>
Mode to describe onConditionChange events.
This enumeration is used as the second argument to a
condition observer's onConditionChange method.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA condition was deleted.A condition was added to a domain.A domain removed a condition.A condition was added to a condition observerA condition observer (e.g., an actor) joined a domain.An observer (e.g., an actor) asked to leave a domain.A condition changed.An observer removed a condition. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionMode
Returns the enum constant of this type with the specified name.static ConditionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OBSERVER_ADDED_CONDITION
A condition was added to a condition observer -
DOMAIN_ADDED_CONDITION
A condition was added to a domain. Used when domain members are notified. -
OBSERVER_JOINED_DOMAIN
A condition observer (e.g., an actor) joined a domain. -
OBSERVER_NOTIFIED
A condition changed. I.e., the condition's notifyObservers method was called. -
DOMAIN_REMOVED_CONDITION
A domain removed a condition. -
OBSERVER_LEFT_DOMAIN
An observer (e.g., an actor) asked to leave a domain. -
OBSERVER_REMOVED_CONDITION
An observer removed a condition. -
CONDITION_DELETED
A condition was deleted.
-
-
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
-