public static enum Command.CommandMode extends Enum<Command.CommandMode>
| Modifier and Type | Method and Description |
|---|---|
static Command.CommandMode |
forValue(String value)
Generate a CommandMode from a string.
|
String |
toString() |
static Command.CommandMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Command.CommandMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command.CommandMode TEXT
public static final Command.CommandMode BINARY
public static Command.CommandMode[] values()
for (Command.CommandMode c : Command.CommandMode.values()) System.out.println(c);
public static Command.CommandMode 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 String toString()
toString in class Enum<Command.CommandMode>public static Command.CommandMode forValue(String value)
value - string valueCopyright © 2016 Twilio, Inc. All Rights Reserved.