Enum Class NewLineBeforeLeftBracket

java.lang.Object
java.lang.Enum<NewLineBeforeLeftBracket>
uk.blankaspect.common.json.NewLineBeforeLeftBracket
All Implemented Interfaces:
Serializable, Comparable<NewLineBeforeLeftBracket>, Constable

public enum NewLineBeforeLeftBracket extends Enum<NewLineBeforeLeftBracket>
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.
  • Enum Constant Details

    • NEVER

      public static final NewLineBeforeLeftBracket 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

      public static final NewLineBeforeLeftBracket 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

      public static final NewLineBeforeLeftBracket 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

      public static NewLineBeforeLeftBracket[] 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

      public static NewLineBeforeLeftBracket valueOf(String name)
      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 name
      NullPointerException - if the argument is null