|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BlockType>
org.crosswire.jsword.book.sword.BlockType
public enum BlockType
Block types indicates the grain of compression.
for license details.
The copyright to this program is held by it's authors.
Enum Constant Summary | |
---|---|
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 |
Field Summary | |
---|---|
private char |
indicator
The indicator for the BlockType |
private String |
name
The name of the BlockType |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BlockType BLOCK_BOOK
public static final BlockType BLOCK_CHAPTER
public static final BlockType BLOCK_VERSE
Field Detail |
---|
private String name
private char indicator
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic char getIndicator()
public static BlockType fromString(String name)
public String toString()
toString
in class Enum<BlockType>
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |