com.omertron.themoviedbapi.model
Enum SearchType
java.lang.Object
java.lang.Enum<SearchType>
com.omertron.themoviedbapi.model.SearchType
- All Implemented Interfaces:
- Serializable, Comparable<SearchType>
public enum SearchType
- extends Enum<SearchType>
By default, the search type is 'phrase'.
This is almost guaranteed the option you will want.
It's a great all purpose search type and by far the most tuned for every day querying.
For those wanting more of an "autocomplete" type search, set this option to 'ngram'
- Author:
- stuart.boston
|
Method Summary |
static SearchType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SearchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
phrase
public static final SearchType phrase
ngram
public static final SearchType ngram
values
public static SearchType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SearchType c : SearchType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SearchType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2012-2013. All Rights Reserved.