Enum Class Phase
- All Implemented Interfaces:
Serializable,Comparable<Phase>,Constable
Represents the phase at which a specific event is being posted.
The exact meaning of Phase differs between implementations, but it is usually used to provide some sort
of time frame for the invocation of the various event listeners. Generally, event listeners will be invoked
from lowest phase to higher phase (i.e. EARLIEST, NORMAL, LATEST), but some
particular implementations might choose a different order if it makes sense to do so.
The default phase of an event is always mapped to NORMAL by contract, though, allowing for
general handlers to always behave correctly.
- Since:
- 11.0.0
-
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
-
Enum Constant Details
-
EARLIEST
Represents the earliest phase of event dispatching.- Since:
- 11.0.0
-
NORMAL
Represents the normal phase of event dispatching, also known as the default phase.- Since:
- 11.0.0
-
LATEST
Represents the latest phase of event dispatching.- Since:
- 11.0.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-