public static enum Service.State extends Enum<Service.State>
Enum Constant and Description |
---|
Admin |
Shutdown |
Staged |
Start |
Starting |
Stopping |
Unknown |
Modifier and Type | Method and Description |
---|---|
static Service.State |
getState(int value) |
static Service.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Service.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Service.State Unknown
public static final Service.State Start
public static final Service.State Shutdown
public static final Service.State Starting
public static final Service.State Stopping
public static final Service.State Staged
public static final Service.State Admin
public static Service.State[] values()
for (Service.State c : Service.State.values()) System.out.println(c);
public static Service.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 nullpublic static Service.State getState(int value)
Copyright © 2016. All rights reserved.