public enum IndexStatus extends Enum<IndexStatus>
The GNU Lesser General Public License for details.
Enum Constant and Description |
---|
CREATING
An index is currently being generated for this Book
|
DONE
There is a complete and ready to use search index
|
INVALID
An index is no longer valid and needs to be discarded.
|
SCHEDULED
This Book has been scheduled for index creation
|
UNDONE
There is no search index, and no plans to create one
|
Modifier and Type | Field and Description |
---|---|
private String |
name
The name of the IndexStatus
|
Modifier and Type | Method and Description |
---|---|
static IndexStatus |
fromString(String name)
Lookup method to convert from a String
|
String |
toString() |
static IndexStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexStatus DONE
public static final IndexStatus UNDONE
public static final IndexStatus SCHEDULED
public static final IndexStatus CREATING
public static final IndexStatus INVALID
private String name
public static IndexStatus[] values()
for (IndexStatus c : IndexStatus.values()) System.out.println(c);
public static IndexStatus 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 static IndexStatus fromString(String name)
name
- public String toString()
toString
in class Enum<IndexStatus>