private static enum StopWatch.State extends Enum<StopWatch.State>
| Enum Constant and Description |
|---|
RUNNING
Stopwatch is running.
|
STOPPED
Stopwatch is stopped.
|
SUSPENDED
Stopwatch is suspended.
|
UNSTARTED
Stopwatch is not started.
|
| 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(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(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 nullabstract boolean isStarted()
abstract boolean isStopped()
abstract boolean isSuspended()
Copyright © 2012 Sven Strittmatter. All Rights Reserved.