Enum Class PacketHandler.Priority
- All Implemented Interfaces:
Serializable, Comparable<PacketHandler.Priority>, Constable
- Enclosing interface:
PacketHandler
Enum constant for priority levels related to Wyck packet handling.
- Since:
- 0.0.6
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<E extends Enum<E>>
EgetDelegatePriority(Class<E> enumClass) Maps this PacketHandler.Priority to another enum class with the same names.intgetLevel()static PacketHandler.PriorityReturns the enum constant of this class with the specified name.static PacketHandler.Priority[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOWEST
-
LOW
-
NORMAL
-
HIGH
-
HIGHEST
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getLevel
public int getLevel() -
getDelegatePriority
Maps this PacketHandler.Priority to another enum class with the same names.- Type Parameters:
E- The enum type- Parameters:
enumClass- The enum class to map to- Returns:
- The mapped enum constant
- Throws:
IllegalArgumentException- if the enum class does not have a constant with the same name
-