Enum Class LineSeparator

java.lang.Object
java.lang.Enum<LineSeparator>
io.github.wasabithumb.jtoml.option.prop.LineSeparator
All Implemented Interfaces:
Serializable, CharSequence, Comparable<LineSeparator>, Constable

public enum LineSeparator extends Enum<LineSeparator> implements CharSequence
  • Enum Constant Details

    • LF

      public static final LineSeparator LF
      UNIX newline (\n, 0x0A)
    • CRLF

      public static final LineSeparator CRLF
      Windows newline (\r\n, 0x0D 0x0A)
  • Field Details

  • Method Details

    • values

      public static LineSeparator[] 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 LineSeparator 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
    • length

      public int length()
      Specified by:
      length in interface CharSequence
    • charAt

      public char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • subSequence

      @Contract("_, _ -> fail") @NotNull public @NotNull CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence
    • toString

      @NotNull public @NotNull String toString()
      Specified by:
      toString in interface CharSequence
      Overrides:
      toString in class Enum<LineSeparator>