Package yapion.packet
Enum HeartBeatType
- java.lang.Object
-
- java.lang.Enum<HeartBeatType>
-
- yapion.packet.HeartBeatType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HeartBeatType>
,java.lang.constant.Constable
public enum HeartBeatType extends java.lang.Enum<HeartBeatType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RECEIVE
SEND
SEND_AND_RECEIVE
-
Method Summary
Modifier and Type Method Description static HeartBeatType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HeartBeatType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEND
public static final HeartBeatType SEND
-
RECEIVE
public static final HeartBeatType RECEIVE
-
SEND_AND_RECEIVE
public static final HeartBeatType SEND_AND_RECEIVE
-
-
Method Detail
-
values
public static HeartBeatType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HeartBeatType 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
-
-