Enum Class IndentStyle

java.lang.Object
java.lang.Enum<IndentStyle>
com.electronwill.nightconfig.core.io.IndentStyle
All Implemented Interfaces:
Serializable, Comparable<IndentStyle>, Constable

public enum IndentStyle extends Enum<IndentStyle>
A style of indent.
  • Enum Constant Details

    • TABS

      public static final IndentStyle TABS
      1 indent = 1 tab character
    • SPACES_2

      public static final IndentStyle SPACES_2
      1 indent = 2 spaces
    • SPACES_4

      public static final IndentStyle SPACES_4
      1 indent = 4 spaces
    • SPACES_8

      public static final IndentStyle SPACES_8
      1 indent = 8 spaces
    • NONE

      public static final IndentStyle NONE
      No identation.
  • Field Details

    • chars

      public final char[] chars
  • Method Details

    • values

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