Package org.mapsforge.poi.storage
Interface PoiCategory
-
- All Known Implementing Classes:
DoubleLinkedPoiCategory
public interface PoiCategoryThis class represents a category forPointOfInterest. EveryPoiCategoryshould have a unique title so that for twoPoiCategorys a and b a.equals(b) if and only if a.title.equalsIgnoreCase(b.title).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<PoiCategory>deepChildren()java.util.Collection<PoiCategory>getChildren()intgetID()PoiCategorygetParent()java.lang.StringgetTitle()voidsetParent(PoiCategory parent)Sets the category's parent category.
-
-
-
Method Detail
-
deepChildren
java.util.Collection<PoiCategory> deepChildren()
- Returns:
- All child categories of the category, including their children.
-
getChildren
java.util.Collection<PoiCategory> getChildren()
- Returns:
- All child categories of the category.
-
getID
int getID()
- Returns:
- The category's id.
-
getParent
PoiCategory getParent()
- Returns:
- The parent category of this category or null if this category has no parent.
-
getTitle
java.lang.String getTitle()
- Returns:
- The title of this category.
-
setParent
void setParent(PoiCategory parent)
Sets the category's parent category.- Parameters:
parent- The category to be set as parent.
-
-