com.citygrid.content.places.search
Enum CGPlacesSearchType
java.lang.Object
java.lang.Enum<CGPlacesSearchType>
com.citygrid.content.places.search.CGPlacesSearchType
- All Implemented Interfaces:
- Serializable, Comparable<CGPlacesSearchType>
public enum CGPlacesSearchType
- extends Enum<CGPlacesSearchType>
Unknown
public static final CGPlacesSearchType Unknown
Movie
public static final CGPlacesSearchType Movie
MovieTheater
public static final CGPlacesSearchType MovieTheater
Restaurant
public static final CGPlacesSearchType Restaurant
Hotel
public static final CGPlacesSearchType Hotel
Travel
public static final CGPlacesSearchType Travel
BarClub
public static final CGPlacesSearchType BarClub
SpaBeauty
public static final CGPlacesSearchType SpaBeauty
Shopping
public static final CGPlacesSearchType Shopping
code
private int code
name
private String name
values
public static CGPlacesSearchType[] 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 (CGPlacesSearchType c : CGPlacesSearchType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CGPlacesSearchType 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
getCode
public int getCode()
getName
public String getName()
Copyright © 2011. All Rights Reserved.