Enum Class LifeCycle
- All Implemented Interfaces:
Serializable
,Comparable<LifeCycle>
,Constable
The life cycle phase of an
Experiment
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA feature at the end of its life cycle, being prepared for removal.An experimental, preview feature designed to be used with caution.Represents a feature that was previously opt-in (or experimental) but is now a part of the default set.A feature that is expected to be safe and (at least) semi-permanent.Represents an unregistered, unknown feature. -
Method Summary
-
Enum Constant Details
-
STABLE
A feature that is expected to be safe and (at least) semi-permanent. This can be used for long-term features that are kept behind toggles to prevent breaking changes. -
EXPERIMENTAL
An experimental, preview feature designed to be used with caution. Features in the experimental phase may be subject to changes or removal at short notice. -
DEPRECATED
A feature at the end of its life cycle, being prepared for removal. Scripts will report a deprecation warning on load if a deprecated feature is used. -
MAINSTREAM
Represents a feature that was previously opt-in (or experimental) but is now a part of the default set. I.e. it no longer needs to be enabled using a feature flag. This will provide a little note to the user on load informing them they no longer need to use this feature flag. -
UNKNOWN
Represents an unregistered, unknown feature. This occurs when a user tags a script asusing X
, whereX
is not a registered feature provided by any addon or extension. Scripts will report a warning on load if an unknown feature is used, but this will not prevent the loading cycle.
-
-
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
-
warn
public boolean warn()- Returns:
- Whether using a feature of this type will produce a warning on load.
-