Enum Class ContainerState
- All Implemented Interfaces:
Serializable, Comparable<ContainerState>, Constable
Constants may be added in a 7.x minor release.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA commit is in flight; every gesture is refused; setReadOnly, load and drain throw; commit returns the in-flight stage; end waits for the answer.Gestures on EDITABLE bindings are applied.Ended (disposition ran, or drained); shows nothing and is not viewed.A commit's outcome is unknown; nothing was refunded; every gesture is refused; setReadOnly, load, commit and drain throw; end ends it with UNKNOWN_KEPT_BY_STORE.Set by the module; every gesture is refused; the module may still load, commit, drain or end it. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerStateReturns the enum constant of this class with the specified name.static ContainerState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EDITABLE
Gestures on EDITABLE bindings are applied. -
READ_ONLY
Set by the module; every gesture is refused; the module may still load, commit, drain or end it. -
COMMITTING
A commit is in flight; every gesture is refused; setReadOnly, load and drain throw; commit returns the in-flight stage; end waits for the answer. -
FAILED
A commit's outcome is unknown; nothing was refunded; every gesture is refused; setReadOnly, load, commit and drain throw; end ends it with UNKNOWN_KEPT_BY_STORE. -
ENDED
Ended (disposition ran, or drained); shows nothing and is not viewed. The getters, changes() (empty) and end() (the same stage) still answer; setReadOnly, load, commit and drain throw IllegalStateException.
-
-
Constructor Details
-
ContainerState
private ContainerState()
-
-
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
-