public static enum Transport.State extends Enum<Transport.State>
Enum Constant and Description |
---|
PAUSE |
START |
STARTING |
STOP |
STOPPING |
Modifier and Type | Method and Description |
---|---|
static Transport.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transport.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transport.State STARTING
public static final Transport.State START
public static final Transport.State PAUSE
public static final Transport.State STOPPING
public static final Transport.State STOP
public static Transport.State[] values()
for (Transport.State c : Transport.State.values()) System.out.println(c);
public static Transport.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 © 2013 Oracle Corporation. All Rights Reserved.