Enum Constant Summary
Enum Constants
Wrap values with double quotes.
folded: >-
Each line
is literal
and are joined with spaces
literal: |-
Each line
is literal
and are joined with new lines
Default style, without quotes when possible.
Wrap values with single quotes.
Method Summary
All Methods Static Methods Concrete Methods
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
SINGLE
Wrap values with single quotes.
single: 'value'
DOUBLE
Wrap values with double quotes.
double: "value"
PLAIN
Default style, without quotes when possible.
plain: value
If value have characters that must be escaped then
SINGLE quote style is used.
LITERAL
literal: |-
Each line
is literal
and are joined with new lines
FOLDED
folded: >-
Each line
is literal
and are joined with spaces
Method Details
values
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null