Package org.eclipse.ditto.things.model
Enum Class ThingLifecycle
- All Implemented Interfaces:
Serializable,Comparable<ThingLifecycle>,Constable
An enumeration of a Thing's lifecycle.
-
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 Optional<ThingLifecycle>Returns theThingLifecyclewith the given name.static ThingLifecycleReturns the enum constant of this class with the specified name.static ThingLifecycle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
Signals that a Thing is active. -
DELETED
Signals that a Thing is deleted.
-
-
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
-
forName
Returns theThingLifecyclewith the given name.- Parameters:
name- the name of the lifecycle to get.- Returns:
- the lifecycle with the given name or an empty optional.
-