Enum Class InliningMode
- All Implemented Interfaces:
Serializable, Comparable<InliningMode>, Constable
Represents the various modes of “inlining” instances of a class, in
serialisations that do support inlining (e.g. JSON, YAML).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInstances are inlined as a dictionary.Inlining is not relevant (typically because the type is not even a class).Instances are inlined as a list.Instances are not inlined, but serialised as references instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic InliningModeReturns the enum constant of this class with the specified name.static InliningMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IRRELEVANT
Inlining is not relevant (typically because the type is not even a class). -
NO_INLINING
Instances are not inlined, but serialised as references instead. This is only possible if their class defines a globally unique identifier. -
LIST
Instances are inlined as a list. -
DICT
Instances are inlined as a dictionary. This is only possible if their class defines an identifier (globally or locally unique).
-
-
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
-