Package io.hekate.network
Enum NetworkServer.State
- java.lang.Object
-
- java.lang.Enum<NetworkServer.State>
-
- io.hekate.network.NetworkServer.State
-
- All Implemented Interfaces:
Serializable
,Comparable<NetworkServer.State>
- Enclosing interface:
- NetworkServer
public static enum NetworkServer.State extends Enum<NetworkServer.State>
State ofNetworkServer
lifecycle.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NetworkServer.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkServer.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOPPED
public static final NetworkServer.State STOPPED
Server is stopped.
-
STARTING
public static final NetworkServer.State STARTING
Server is starting.
-
STARTED
public static final NetworkServer.State STARTED
Server is started.
-
STOPPING
public static final NetworkServer.State STOPPING
Server is stopping.
-
-
Method Detail
-
values
public static NetworkServer.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 (NetworkServer.State c : NetworkServer.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 NetworkServer.State valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-