public static enum TimerEvent.State extends Enum<TimerEvent.State>
| Enum Constant and Description |
|---|
FINISHED
The timer has finished timing.
|
LAP
The timer timed a lap.
|
START
The timer has started timing.
|
| Modifier and Type | Method and Description |
|---|---|
static TimerEvent.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimerEvent.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimerEvent.State START
TimerEvent.getDuration() is 0. TimerEvent.getElapsed() is 0.public static final TimerEvent.State LAP
TimerEvent.getDuration() is the time since the last event. TimerEvent.getElapsed() is the total elapsed time.public static final TimerEvent.State FINISHED
TimerEvent.getDuration() is the time since the last event. TimerEvent.getElapsed() is the total elapsed time.public static TimerEvent.State[] values()
for (TimerEvent.State c : TimerEvent.State.values()) System.out.println(c);
public static TimerEvent.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 nullCopyright © 2019. All rights reserved.