public static enum UdpServer.State extends java.lang.Enum<UdpServer.State>
One of four possible states for the server to be in:
Enum Constant and Description |
---|
STARTED |
STARTING |
STOPPED |
STOPPING |
Modifier and Type | Method and Description |
---|---|
static UdpServer.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UdpServer.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UdpServer.State STARTING
public static final UdpServer.State STARTED
public static final UdpServer.State STOPPING
public static final UdpServer.State STOPPED
public static UdpServer.State[] values()
for (UdpServer.State c : UdpServer.State.values()) System.out.println(c);
public static UdpServer.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 null