Package org.drasyl.util.protocol
Enum PcpPortUtil.ResultCode
- java.lang.Object
-
- java.lang.Enum<PcpPortUtil.ResultCode>
-
- org.drasyl.util.protocol.PcpPortUtil.ResultCode
-
- All Implemented Interfaces:
Serializable
,Comparable<PcpPortUtil.ResultCode>
- Enclosing class:
- PcpPortUtil
public static enum PcpPortUtil.ResultCode extends Enum<PcpPortUtil.ResultCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESS_MISMATCH
CANNOT_PROVIDE_EXTERNAL
EXCESSIVE_REMOTE_PEERS
MALFORMED_OPTION
MALFORMED_REQUEST
NETWORK_FAILURE
NO_RESOURCES
NOT_AUTHORIZED
SUCCESS
UNSUPP_OPCODE
UNSUPP_OPTION
UNSUPP_PROTOCOL
UNSUPP_VERSION
USER_EX_QUOTA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PcpPortUtil.ResultCode
from(short number)
short
getNumber()
static PcpPortUtil.ResultCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PcpPortUtil.ResultCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final PcpPortUtil.ResultCode SUCCESS
-
UNSUPP_VERSION
public static final PcpPortUtil.ResultCode UNSUPP_VERSION
-
NOT_AUTHORIZED
public static final PcpPortUtil.ResultCode NOT_AUTHORIZED
-
MALFORMED_REQUEST
public static final PcpPortUtil.ResultCode MALFORMED_REQUEST
-
UNSUPP_OPCODE
public static final PcpPortUtil.ResultCode UNSUPP_OPCODE
-
UNSUPP_OPTION
public static final PcpPortUtil.ResultCode UNSUPP_OPTION
-
MALFORMED_OPTION
public static final PcpPortUtil.ResultCode MALFORMED_OPTION
-
NETWORK_FAILURE
public static final PcpPortUtil.ResultCode NETWORK_FAILURE
-
NO_RESOURCES
public static final PcpPortUtil.ResultCode NO_RESOURCES
-
UNSUPP_PROTOCOL
public static final PcpPortUtil.ResultCode UNSUPP_PROTOCOL
-
USER_EX_QUOTA
public static final PcpPortUtil.ResultCode USER_EX_QUOTA
-
CANNOT_PROVIDE_EXTERNAL
public static final PcpPortUtil.ResultCode CANNOT_PROVIDE_EXTERNAL
-
ADDRESS_MISMATCH
public static final PcpPortUtil.ResultCode ADDRESS_MISMATCH
-
EXCESSIVE_REMOTE_PEERS
public static final PcpPortUtil.ResultCode EXCESSIVE_REMOTE_PEERS
-
-
Method Detail
-
values
public static PcpPortUtil.ResultCode[] 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 (PcpPortUtil.ResultCode c : PcpPortUtil.ResultCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PcpPortUtil.ResultCode 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
-
getNumber
public short getNumber()
-
from
public static PcpPortUtil.ResultCode from(short number)
-
-