Package in.dragonbra.javasteam.enums
Enum EUdpPacketType
- java.lang.Object
-
- java.lang.Enum<EUdpPacketType>
-
- in.dragonbra.javasteam.enums.EUdpPacketType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EUdpPacketType>
public enum EUdpPacketType extends java.lang.Enum<EUdpPacketType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AcceptChallengeChallengeReqConnectDataDatagramDisconnectInvalidMax
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytecode()static EUdpPacketTypefrom(byte code)static EUdpPacketTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EUdpPacketType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Invalid
public static final EUdpPacketType Invalid
-
ChallengeReq
public static final EUdpPacketType ChallengeReq
-
Challenge
public static final EUdpPacketType Challenge
-
Connect
public static final EUdpPacketType Connect
-
Accept
public static final EUdpPacketType Accept
-
Disconnect
public static final EUdpPacketType Disconnect
-
Data
public static final EUdpPacketType Data
-
Datagram
public static final EUdpPacketType Datagram
-
Max
public static final EUdpPacketType Max
-
-
Method Detail
-
values
public static EUdpPacketType[] 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 (EUdpPacketType c : EUdpPacketType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EUdpPacketType 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 namejava.lang.NullPointerException- if the argument is null
-
code
public byte code()
-
from
public static EUdpPacketType from(byte code)
-
-