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