public static enum Transport.State extends Enum<Transport.State>
Enum Constant and Description |
---|
PAUSED |
PAUSING |
STARTED |
STARTING |
STOPPED |
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 STARTED
public static final Transport.State PAUSING
public static final Transport.State PAUSED
public static final Transport.State STOPPING
public static final Transport.State STOPPED
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 © 2015 Oracle Corporation. All rights reserved.