public enum CloseMode extends Enum<CloseMode>
Modifier and Type | Method and Description |
---|---|
static CloseMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseMode GRACEFUL
public static final CloseMode IMMEDIATE
public static CloseMode 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 static CloseMode[] values()
for (CloseMode c : CloseMode.values()) System.out.println(c);