public static enum Service.State extends Enum<Service.State>
Enum Constant and Description |
---|
DOWN |
UNRECOGNIZED |
UP |
Modifier and Type | Method and Description |
---|---|
static Service.State |
forValue(String 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 DOWN
public static final Service.State UNRECOGNIZED
public static final Service.State UP
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 forValue(String value)
Copyright © 2017. All rights reserved.