Enum API.Status
- All Implemented Interfaces:
Serializable
,Comparable<API.Status>
,java.lang.constant.Constable
- Enclosing class:
- API
An enum of possible API stability statuses. Each use of the
API
annotation must declare its status as
exactly one of these to indicate the stability of that API. The statuses shall be arranged in increasing order of
stability, so that a status shall be "less stable" than a status appearing after it in the enumeration.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated code that should not be used in new code.Used for new features under development where the API has not yet stabilized.Should not to be used by external code.Used for APIs that shall not be changed in a backwards-incompatible way or removed until the next major release.Used by APIs that may change in the next minor release without prior notice. -
Method Summary
Modifier and TypeMethodDescriptionstatic API.Status
Returns the enum constant of this type with the specified name.static API.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INTERNAL
Should not to be used by external code. This API ispublic
only because it is needed by another package within the Record Layer core. May change at any time, without prior notice, and without a change in version. Shall not become less stable since this is the least stable status. -
DEPRECATED
Deprecated code that should not be used in new code. Existing users should transition away from this API. May be removed in the next minor release but must not be removed until the next minor release. May become less stable in the next minor release. -
EXPERIMENTAL
Used for new features under development where the API has not yet stabilized. May be used by external consumers with caution, since it may change or be removed without notice or a change in version. May become less stable in the next minor release. -
UNSTABLE
Used by APIs that may change in the next minor release without prior notice. In contrast to those markedEXPERIMENTAL
, this API shall not be changed or be removed until the next minor release. -
STABLE
Used for APIs that shall not be changed in a backwards-incompatible way or removed until the next major release. May become less stable in the next major release.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-