Enum Class LineSeparator
- All Implemented Interfaces:
Serializable,CharSequence,Comparable<LineSeparator>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LineSeparatorThe system line separator, determined bySystem.lineSeparator() -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) intlength()@NotNull CharSequencesubSequence(int start, int end) @NotNull StringtoString()static LineSeparatorReturns the enum constant of this class with the specified name.static LineSeparator[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Enum Constant Details
-
LF
UNIX newline (\n,0x0A) -
CRLF
Windows newline (\r\n,0x0D 0x0A)
-
-
Field Details
-
SYSTEM
The system line separator, determined bySystem.lineSeparator()
-
-
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
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classEnum<LineSeparator>
-