public static enum NormalizeLineSeparatorReader.LineSeparator extends Enum<NormalizeLineSeparatorReader.LineSeparator>
Modifier and Type | Method and Description |
---|---|
org.apache.maven.plugins.enforcer.utils.NormalizeLineSeparatorReader.LineSeparator.MatchResult |
matches(char currentCharacter,
Character previousCharacter)
Checks if two given characters match the line separator represented by this object.
|
static NormalizeLineSeparatorReader.LineSeparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NormalizeLineSeparatorReader.LineSeparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NormalizeLineSeparatorReader.LineSeparator WINDOWS
public static final NormalizeLineSeparatorReader.LineSeparator UNIX
public static NormalizeLineSeparatorReader.LineSeparator[] values()
for (NormalizeLineSeparatorReader.LineSeparator c : NormalizeLineSeparatorReader.LineSeparator.values()) System.out.println(c);
public static NormalizeLineSeparatorReader.LineSeparator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.apache.maven.plugins.enforcer.utils.NormalizeLineSeparatorReader.LineSeparator.MatchResult matches(char currentCharacter, Character previousCharacter)
currentCharacter
- the character to check againstpreviousCharacter
- optional previous character (may be null
)MatchResult
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.