public enum OperationState extends Enum<OperationState>
Enum Constant and Description |
---|
ACTIVE
The Operation is open and is active on at least one thread
|
CLOSED
The Operation has been closed
|
SUSPENDED
The Operation is open but not active on any thread
|
Modifier and Type | Method and Description |
---|---|
static OperationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationState ACTIVE
public static final OperationState SUSPENDED
public static final OperationState CLOSED
public static OperationState[] values()
for (OperationState c : OperationState.values()) System.out.println(c);
public static OperationState 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 © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.