public static enum SearchFilter.QueryType extends Enum<SearchFilter.QueryType>
Enum Constant and Description |
---|
Contains |
Fragment |
InsensitiveContains |
Modifier and Type | Method and Description |
---|---|
static Optional<SearchFilter.QueryType> |
fromType(String type)
Get the QueryType enum from it's search type.
|
static SearchFilter.QueryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchFilter.QueryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchFilter.QueryType InsensitiveContains
public static final SearchFilter.QueryType Fragment
public static final SearchFilter.QueryType Contains
public static SearchFilter.QueryType[] values()
for (SearchFilter.QueryType c : SearchFilter.QueryType.values()) System.out.println(c);
public static SearchFilter.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 Optional<SearchFilter.QueryType> fromType(String type)
type
- The type of query.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.