Class Overview
A representation of a thread's state. A given thread may only be in one
state at a time.
Summary
|
[Expand]
Inherited Methods |
From class java.lang.Enum
|
final
Object
|
clone()
Enums are singletons, they may not be cloned.
|
|
final
int
|
compareTo(E o)
Returns the comparative ordering of the receiver and the given argument.
|
|
final
boolean
|
equals(Object other)
Returns true only if the receiver is equal to the argument.
|
|
final
Class<E>
|
getDeclaringClass()
Returns the enum constant's declaring class.
|
|
final
int
|
hashCode()
Returns the hash of the receiver.
|
|
final
String
|
name()
Returns the name of the enum constant.
|
|
final
int
|
ordinal()
Returns the position of the enum constant in the declaration.
|
|
String
|
toString()
Answer a string representation of the receiver suitable for display to a
programmer.
|
|
static
<T extends Enum<T>>
T
|
valueOf(Class<T> enumType, String name)
Returns the named constant of the given enum type.
|
|
From class java.lang.Object
|
Object
|
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
|
|
boolean
|
equals(Object o)
Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison.
|
|
void
|
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver.
|
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of java.lang.Class which represents the class
of the receiver.
|
|
int
|
hashCode()
Returns an integer hash code for the receiver.
|
|
final
void
|
notify()
Causes one thread which is wait ing on the receiver to be
made ready to run.
|
|
final
void
|
notifyAll()
Causes all threads which are wait ing on the receiver to
be made ready to run.
|
|
String
|
toString()
Returns a string containing a concise, human-readable description of the
receiver.
|
|
final
void
|
wait(long time, int frac)
Causes the thread which sent this message to be made not ready to run
either pending some change in the receiver (as indicated by
notify or notifyAll) or the expiration of
the timeout.
|
|
final
void
|
wait(long time)
Causes the thread which sent this message to be made not ready to run
either pending some change in the receiver (as indicated by
notify or notifyAll) or the expiration of
the timeout.
|
|
final
void
|
wait()
Causes the thread which sent this message to be made not ready to run
pending some change in the receiver (as indicated by notify
or notifyAll).
|
|
From interface java.lang.Comparable
|
abstract
int
|
compareTo(T another)
Returns an integer indicating the relative positions of the receiver and
the argument in the natural order of elements of the receiver's class.
|
|
Enum Values
public
static
final
Thread.State
BLOCKED
The thread is blocked and waiting for a lock.
The thread has been created, but has never been started.
public
static
final
Thread.State
TERMINATED
The thread has been terminated.
public
static
final
Thread.State
TIMED_WAITING
The thread is waiting for a specified amount of time.
Public Methods
public
static
final
State[]
values
()