public class ExactMatchPoiCategoryFilter extends Object implements PoiCategoryFilter
WhitelistPoiCategoryFilter no child categories of an added category are accepted.| Constructor and Description |
|---|
ExactMatchPoiCategoryFilter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(PoiCategory category)
Adds a category to the whitelist.
|
Collection<PoiCategory> |
getAcceptedCategories() |
Collection<PoiCategory> |
getAcceptedSuperCategories()
Returns a set of top-level categories for all accepted categories.
|
boolean |
isAcceptedCategory(PoiCategory category)
Returns true if a POI's category is accepted and therefore shall be added to the poi file.
|
public ExactMatchPoiCategoryFilter()
public void addCategory(PoiCategory category)
PoiCategoryFilteraddCategory in interface PoiCategoryFiltercategory - The category to be added.public Collection<PoiCategory> getAcceptedCategories()
getAcceptedCategories in interface PoiCategoryFilterpublic Collection<PoiCategory> getAcceptedSuperCategories()
PoiCategoryFiltergetAcceptedSuperCategories in interface PoiCategoryFilterpublic boolean isAcceptedCategory(PoiCategory category)
PoiCategoryFilterisAcceptedCategory in interface PoiCategoryFiltercategory - The POI's category.Copyright © 2016 mapsforge.org