Enum Class StandardSerialisationStyle
java.lang.Object
java.lang.Enum<StandardSerialisationStyle>
eu.cloudnetservice.driver.document.StandardSerialisationStyle
- All Implemented Interfaces:
SerialisationStyle,Serializable,Comparable<StandardSerialisationStyle>,Constable
public enum StandardSerialisationStyle
extends Enum<StandardSerialisationStyle>
implements SerialisationStyle
Defines the standard serialisation styles. All document implementations should at least support these serialisation
styles or silently convert them to a supported style. They should never throw an exception when a standard style is
passed to a serialisation method.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StandardSerialisationStyleReturns the enum constant of this class with the specified name.static StandardSerialisationStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPACT
Uses the most efficient way to pack the document data. This style is preferred when the document is not subject to be read by a human (for example when transferred via the network). -
PRETTY
Uses a human-readable style to pack the data.
-
-
Constructor Details
-
StandardSerialisationStyle
private StandardSerialisationStyle()
-
-
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
-