Enum Class SparkleApp.State
- All Implemented Interfaces:
Serializable, Comparable<SparkleApp.State>, Constable
- Enclosing class:
SparkleApp
The app state.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe app instance has been initialized and is about to start.The app instance was just created.The app instance is running.The app instance is terminated.The app instance is being terminated. -
Method Summary
Modifier and TypeMethodDescriptionstatic SparkleApp.StateReturns the enum constant of this class with the specified name.static SparkleApp.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEW
The app instance was just created. CallingSparkleApp.terminate()at this state is illegal. -
INITIALIZED
The app instance has been initialized and is about to start. CallingSparkleApp.terminate()at this state is illegal. -
RUNNING
The app instance is running. CallingSparkleApp.terminate()at this state will cause graceful exit. -
TERMINATING
The app instance is being terminated. CallingSparkleApp.terminate()at this state does nothing. -
TERMINATED
The app instance is terminated. CallingSparkleApp.terminate()at this state does nothing.
-
-
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
-