Package de.coreengine.network
Enum TCPClient.HandshakeResult
- java.lang.Object
-
- java.lang.Enum<TCPClient.HandshakeResult>
-
- de.coreengine.network.TCPClient.HandshakeResult
-
- All Implemented Interfaces:
Serializable
,Comparable<TCPClient.HandshakeResult>
- Enclosing class:
- TCPClient
public static enum TCPClient.HandshakeResult extends Enum<TCPClient.HandshakeResult>
Result values for a tcp handshake
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTED
BANNED
ERROR
FULL
NAME_TAKEN
WRONG_PASSWORD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TCPClient.HandshakeResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static TCPClient.HandshakeResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final TCPClient.HandshakeResult ERROR
-
ACCEPTED
public static final TCPClient.HandshakeResult ACCEPTED
-
WRONG_PASSWORD
public static final TCPClient.HandshakeResult WRONG_PASSWORD
-
FULL
public static final TCPClient.HandshakeResult FULL
-
BANNED
public static final TCPClient.HandshakeResult BANNED
-
NAME_TAKEN
public static final TCPClient.HandshakeResult NAME_TAKEN
-
-
Method Detail
-
values
public static TCPClient.HandshakeResult[] 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 (TCPClient.HandshakeResult c : TCPClient.HandshakeResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TCPClient.HandshakeResult 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
-
-