protected static enum ProtocolSession.TimerCommand extends Enum<ProtocolSession.TimerCommand>
Modifier and Type | Method and Description |
---|---|
static ProtocolSession.TimerCommand |
from(String value) |
static ProtocolSession.TimerCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolSession.TimerCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolSession.TimerCommand START
public static final ProtocolSession.TimerCommand PRINT
public static final ProtocolSession.TimerCommand RESET
public static ProtocolSession.TimerCommand[] values()
for (ProtocolSession.TimerCommand c : ProtocolSession.TimerCommand.values()) System.out.println(c);
public static ProtocolSession.TimerCommand 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 nullpublic static ProtocolSession.TimerCommand from(String value) throws ProtocolSession.InvalidServerResponseException
Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.