|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PassageType>
org.crosswire.jsword.passage.PassageType
public enum PassageType
Types of Passage optimizations.
The GNU Lesser General Public License for details.
Enum Constant Summary | |
---|---|
MIX
Optimize the Passage for a mix |
|
SIZE
Optimize the Passage for size |
|
SPEED
Optimize the Passage for speed |
|
TALLY
Optimize the Passage for tally operations |
|
WRITE_SPEED
Optimize the Passage for write speed |
Method Summary | |
---|---|
abstract Passage |
createEmptyPassage(Versification v11n)
Create an empty, optimized passage |
Passage |
createPassage(Versification v11n,
String passage)
|
abstract Passage |
createPassage(Versification v11n,
String passage,
Key basis)
Create an optimized passage |
static PassageType |
fromInteger(int i)
Lookup method to convert from an integer |
static PassageType |
fromString(String name)
Lookup method to convert from a String |
static int |
toInteger(PassageType type)
Lookup method to convert from an integer |
static PassageType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PassageType[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PassageType SPEED
public static final PassageType WRITE_SPEED
public static final PassageType SIZE
public static final PassageType MIX
public static final PassageType TALLY
Method Detail |
---|
public static PassageType[] values()
for (PassageType c : PassageType.values()) System.out.println(c);
public static PassageType 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 abstract Passage createPassage(Versification v11n, String passage, Key basis) throws NoSuchVerseException
v11n
- the versification to which this reference pertainspassage
- basis
-
NoSuchVerseException
public Passage createPassage(Versification v11n, String passage) throws NoSuchVerseException
NoSuchVerseException
public abstract Passage createEmptyPassage(Versification v11n)
v11n
- the versification to which this reference pertains
public static PassageType fromString(String name)
name
-
public static PassageType fromInteger(int i)
i
-
public static int toInteger(PassageType type)
type
-
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |