Package com.github.junrar.rarfile
Enum SubBlockHeaderType
- java.lang.Object
-
- java.lang.Enum<SubBlockHeaderType>
-
- com.github.junrar.rarfile.SubBlockHeaderType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SubBlockHeaderType>
public enum SubBlockHeaderType extends java.lang.Enum<SubBlockHeaderType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEEA_HEADEA_HEADMAC_HEADNTACL_HEADSTREAM_HEADUO_HEAD
-
Field Summary
Fields Modifier and Type Field Description private shortsubblocktype
-
Constructor Summary
Constructors Modifier Constructor Description privateSubBlockHeaderType(short subblocktype)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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 valueshortgetSubblocktype()static SubBlockHeaderTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SubBlockHeaderType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EA_HEAD
public static final SubBlockHeaderType EA_HEAD
-
UO_HEAD
public static final SubBlockHeaderType UO_HEAD
-
MAC_HEAD
public static final SubBlockHeaderType MAC_HEAD
-
BEEA_HEAD
public static final SubBlockHeaderType BEEA_HEAD
-
NTACL_HEAD
public static final SubBlockHeaderType NTACL_HEAD
-
STREAM_HEAD
public static final SubBlockHeaderType STREAM_HEAD
-
-
Method Detail
-
values
public static SubBlockHeaderType[] 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 (SubBlockHeaderType c : SubBlockHeaderType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubBlockHeaderType 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
-
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
public static SubBlockHeaderType findSubblockHeaderType(short subType)
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
-
-