Enum PackExt
- All Implemented Interfaces:
Serializable
,Comparable<PackExt>
A pack file extension.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA pack bitmap index file extension.A pack index file extension.A keep pack file extension.A pack file extension.A reftable file. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getBit()
Get the bit mask of the extension e.g1 << getPosition()
.Get the file extension.int
Get the position of the extension in the enum declaration.toString()
static PackExt
Returns the enum constant of this type with the specified name.static PackExt[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PACK
A pack file extension. -
INDEX
A pack index file extension. -
KEEP
A keep pack file extension. -
BITMAP_INDEX
A pack bitmap index file extension. -
REFTABLE
A reftable file.
-
-
Field Details
-
ext
-
-
Constructor Details
-
PackExt
-
-
Method Details
-
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
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getExtension
Get the file extension.- Returns:
- the file extension.
-
getPosition
public int getPosition()Get the position of the extension in the enum declaration.- Returns:
- the position of the extension in the enum declaration.
-
getBit
public int getBit()Get the bit mask of the extension e.g1 << getPosition()
.- Returns:
- the bit mask of the extension e.g
1 << getPosition()
.
-
toString
-