private static enum StopWatch.State extends java.lang.Enum<StopWatch.State>
Enum Constant and Description |
---|
RUNNING |
STOPPED |
SUSPENDED |
UNSTARTED |
Modifier and Type | Method and Description |
---|---|
(package private) abstract boolean |
isStarted()
The method is used to find out if the StopWatch is started.
|
(package private) abstract boolean |
isStopped()
This method is used to find out whether the StopWatch is stopped.
|
(package private) abstract boolean |
isSuspended()
This method is used to find out whether the StopWatch is suspended.
|
static StopWatch.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StopWatch.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StopWatch.State UNSTARTED
public static final StopWatch.State RUNNING
public static final StopWatch.State STOPPED
public static final StopWatch.State SUSPENDED
public static StopWatch.State[] values()
for (StopWatch.State c : StopWatch.State.values()) System.out.println(c);
public static StopWatch.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullabstract boolean isStarted()
The method is used to find out if the StopWatch is started. A suspended StopWatch is also started watch.
abstract boolean isStopped()
This method is used to find out whether the StopWatch is stopped. The stopwatch which's not yet started and explicitly stopped stopwatch is considered as stopped.
abstract boolean isSuspended()
This method is used to find out whether the StopWatch is suspended.