public enum ThreadState extends Enum<ThreadState>
| Enum Constant and Description |
|---|
BLOCKED |
NEW |
RUNNABLE |
TERMINATED |
TIMED_WAITING |
UNKNOWN |
WAITING |
| Modifier and Type | Method and Description |
|---|---|
static ThreadState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadState NEW
public static final ThreadState RUNNABLE
public static final ThreadState BLOCKED
public static final ThreadState WAITING
public static final ThreadState TIMED_WAITING
public static final ThreadState TERMINATED
public static final ThreadState UNKNOWN
public static ThreadState[] values()
for (ThreadState c : ThreadState.values()) System.out.println(c);
public static ThreadState 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 © 2013. All Rights Reserved.