Enum Class LeftCurlyOption
- All Implemented Interfaces:
Serializable
,Comparable<LeftCurlyOption>
,Constable
Represents the options for placing the left curly brace
'{'
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LeftCurlyOption
Returns the enum constant of this class with the specified name.static LeftCurlyOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOL
Represents the policy for placing the brace at the end of line. For example:if (condition) { ...
-
NLOW
Represents the policy that if the brace will fit on the first line of the statement, then applyEOL
rule. Otherwise apply theNL
rule.NLOW
is a mnemonic for "new line on wrap".For the example above Checkstyle will enforce:
if (condition) { ...
But for a statement spanning multiple lines, Checkstyle will enforce:
if (condition1 && condition2 && condition3 && condition4) { ...
-
NL
Represents the policy that the brace must always be on a new line. For example:if (condition) { ...
-
-
Constructor Details
-
LeftCurlyOption
private LeftCurlyOption()
-
-
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
-