java.io.Serializable, java.lang.Comparable<Service.STATE>public static enum Service.STATE extends java.lang.Enum<Service.STATE>
| Enum Constant | Description |
|---|---|
INITED |
Initialized but not started or stopped
|
NOTINITED |
Constructed but not initialized
|
STARTED |
started and not stopped
|
STOPPED |
stopped.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getValue() |
Get the integer value of a state
|
java.lang.String |
toString() |
Get the name of a state
|
static Service.STATE |
valueOf(java.lang.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 NOTINITED
public static final Service.STATE INITED
public static final Service.STATE STARTED
public static final Service.STATE STOPPED
public static Service.STATE[] values()
for (Service.STATE c : Service.STATE.values()) System.out.println(c);
public static Service.STATE valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public java.lang.String toString()
toString in class java.lang.Enum<Service.STATE>Copyright © 2008–2025 Apache Software Foundation. All rights reserved.