Enum Class SubBlockHeaderType
- All Implemented Interfaces:
Serializable, Comparable<SubBlockHeaderType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(short subblocktype) Return true if the given value is equal to the enum's valuestatic SubBlockHeaderTypefindSubblockHeaderType(short subType) find the header type for the given short valueshortstatic SubBlockHeaderTypeReturns the enum constant of this class with the specified name.static SubBlockHeaderType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EA_HEAD
-
UO_HEAD
-
MAC_HEAD
-
BEEA_HEAD
-
NTACL_HEAD
-
STREAM_HEAD
-
-
Field Details
-
subblocktype
private final short subblocktype
-
-
Constructor Details
-
SubBlockHeaderType
private SubBlockHeaderType(short subblocktype)
-
-
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
-
equals
public boolean equals(short subblocktype) Return true if the given value is equal to the enum's value- Parameters:
subblocktype- .- Returns:
- true if the given value is equal to the enum's value
-
findSubblockHeaderType
find the header type for the given short value- Parameters:
subType- the short value- Returns:
- the corresponding enum or null
-
getSubblocktype
public short getSubblocktype()- Returns:
- the short representation of this enum
-