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