Package edu.wpi.grip.core.http
Enum GripServer.State
- java.lang.Object
-
- java.lang.Enum<GripServer.State>
-
- edu.wpi.grip.core.http.GripServer.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GripServer.State>
- Enclosing class:
- GripServer
public static enum GripServer.State extends java.lang.Enum<GripServer.State>
Possible lifecycle states of the server.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GripServer.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GripServer.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRE_RUN
public static final GripServer.State PRE_RUN
The server has not been started yet.
-
RUNNING
public static final GripServer.State RUNNING
The server is currently running.
-
STOPPED
public static final GripServer.State STOPPED
The server was running and has been stopped.
-
-
Method Detail
-
values
public static GripServer.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GripServer.State c : GripServer.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GripServer.State valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-