public enum BlockType extends Enum<BlockType>
The GNU Lesser General Public License for details.
Enum Constant and Description |
---|
BLOCK_BOOK
The level of compression is the Book
|
BLOCK_CHAPTER
The level of compression is the Book
|
BLOCK_VERSE
The level of compression is the Book
|
Modifier and Type | Field and Description |
---|---|
private char |
indicator
The indicator for the BlockType
|
private String |
name
The name of the BlockType
|
Modifier and Type | Method and Description |
---|---|
static BlockType |
fromString(String name)
Lookup method to convert from a String
|
char |
getIndicator()
Return a character indicating the grain of compression.
|
String |
toString() |
static BlockType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockType BLOCK_BOOK
public static final BlockType BLOCK_CHAPTER
public static final BlockType BLOCK_VERSE
private String name
private char indicator
public static BlockType[] values()
for (BlockType c : BlockType.values()) System.out.println(c);
public static BlockType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic char getIndicator()
public static BlockType fromString(String name)
name
- the string representation of the block type