Package uk.blankaspect.common.json
Enum Class NewLineBeforeLeftBracket
- All Implemented Interfaces:
Serializable
,Comparable<NewLineBeforeLeftBracket>
,Constable
This is an enumeration of the circumstances in which a new line is written before the opening bracket of a JSON array
or the opening brace of a JSON object.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways write a new line (LF, U+000A) before the opening bracket of a JSON array or the opening brace of a JSON object.Write a new line (LF, U+000A) before the opening bracket of a JSON array or the opening brace of a JSON object except when the bracket or brace occurs after the name of a member of a JSON object.Never write a new line (LF, U+000A) before the opening bracket of a JSON array or the opening brace of a JSON object. -
Method Summary
Modifier and TypeMethodDescriptionstatic NewLineBeforeLeftBracket
Returns the enum constant of this class with the specified name.static NewLineBeforeLeftBracket[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Never write a new line (LF, U+000A) before the opening bracket of a JSON array or the opening brace of a JSON object. -
EXCEPT_AFTER_NAME
Write a new line (LF, U+000A) before the opening bracket of a JSON array or the opening brace of a JSON object except when the bracket or brace occurs after the name of a member of a JSON object. -
ALWAYS
Always write a new line (LF, U+000A) before the opening bracket of a JSON array or the opening brace of a JSON object.
-
-
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
-