Package info.kwarc.kalah
Enum ProtocolManager.ConnectionType
- java.lang.Object
-
- java.lang.Enum<ProtocolManager.ConnectionType>
-
- info.kwarc.kalah.ProtocolManager.ConnectionType
-
- All Implemented Interfaces:
Serializable
,Comparable<ProtocolManager.ConnectionType>
- Enclosing class:
- ProtocolManager
public static enum ProtocolManager.ConnectionType extends Enum<ProtocolManager.ConnectionType>
Enum for the three possible connection types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TCP
TCPWebSocket
WebsocketWebSocketSecure
WebSocketSecure
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProtocolManager.ConnectionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProtocolManager.ConnectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TCP
public static final ProtocolManager.ConnectionType TCP
TCP
-
WebSocket
public static final ProtocolManager.ConnectionType WebSocket
Websocket
-
WebSocketSecure
public static final ProtocolManager.ConnectionType WebSocketSecure
WebSocketSecure
-
-
Method Detail
-
values
public static ProtocolManager.ConnectionType[] 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 (ProtocolManager.ConnectionType c : ProtocolManager.ConnectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtocolManager.ConnectionType 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
-
-