server.framework.models
Enum AbstractServer.CommType
java.lang.Object
java.lang.Enum<AbstractServer.CommType>
server.framework.models.AbstractServer.CommType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<AbstractServer.CommType>
- Enclosing class:
- AbstractServer<S extends AbstractSession<P,?>,P extends AbstractPlayer>
public static enum AbstractServer.CommType
- extends java.lang.Enum<AbstractServer.CommType>
This enum contains the support for tcp and udp communication
specified in the arguments when starting the server application.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
tcp
public static final AbstractServer.CommType tcp
udp
public static final AbstractServer.CommType udp
values
public static AbstractServer.CommType[] 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 (AbstractServer.CommType c : AbstractServer.CommType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AbstractServer.CommType 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 name
java.lang.NullPointerException
- if the argument is null
getCommType
public static AbstractServer.CommType getCommType(java.lang.String commType)