public enum RightCurlyOption extends Enum<RightCurlyOption>
'}'.| Enum Constant and Description |
|---|
ALONE
Represents the policy that the brace must be alone on the line.
|
SAME
Represents the policy that the brace must be on the same line as the
next statement.
|
| Modifier and Type | Method and Description |
|---|---|
static RightCurlyOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RightCurlyOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RightCurlyOption ALONE
try {
...
}
finally {
public static final RightCurlyOption SAME
try {
...
} finally {
public static RightCurlyOption[] values()
for (RightCurlyOption c : RightCurlyOption.values()) System.out.println(c);
public static RightCurlyOption 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 nullCopyright © 2001–2015. All rights reserved.