public class Category
extends java.lang.Object
Place
can be associated.Modifier and Type | Class and Description |
---|---|
static class |
Category.Global
Represents a set of fixed category filters on the resources of the Places search service.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIconUrl()
Gets the URL to retrieve the icon for the
Category . |
java.lang.String |
getId()
Gets the unique identifier for the
Category . |
java.lang.String |
getName()
Gets the localized display name for the
Category . |
Category |
getParent()
Gets the parent
Category for the Category . |
java.util.List<Category> |
getSubCategories()
Gets the list of subcategories for the
Category . |
static java.util.List<Category> |
globalCategories()
Return the localized Global categories for Places search.
|
static Category |
globalCategory(Category.Global type)
Return the localized Global category for Places search.
|
int |
hashCode() |
public static java.util.List<Category> globalCategories()
public static Category globalCategory(Category.Global type)
type
- The Global type.public java.lang.String getId()
Category
.public java.lang.String getName()
Category
.public java.lang.String getIconUrl()
Category
.public java.util.List<Category> getSubCategories()
Category
.
Note: a Category
might have no subcategories, in which case this method would return
empty
.
Category
objects representing the subcategories (could be
empty
)public Category getParent()
Category
for the Category
.
Note: The category can already be a parent Category
, in which case this method would
return itself.
Category
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object