public enum PassageType extends Enum<PassageType>
The GNU Lesser General Public License for details.
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- 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 pertainspublic static PassageType fromString(String name)
name
- public static PassageType fromInteger(int i)
i
- public static int toInteger(PassageType type)
type
-