public static enum Query.QueryType extends Enum<Query.QueryType>
Enum Constant and Description |
---|
PREFIX_ALL
All query words are interpreted as prefixes.
|
PREFIX_LAST
Only the last word is interpreted as a prefix.
|
PREFIX_NONE
No query word is interpreted as a prefix.
|
Modifier and Type | Method and Description |
---|---|
static Query.QueryType |
fromString(String string) |
static Query.QueryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Query.QueryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Query.QueryType PREFIX_ALL
public static final Query.QueryType PREFIX_LAST
public static final Query.QueryType PREFIX_NONE
public static Query.QueryType[] values()
for (Query.QueryType c : Query.QueryType.values()) System.out.println(c);
public static Query.QueryType 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 Query.QueryType fromString(String string)