Interface PoiCategory

All Known Implementing Classes:
DoubleLinkedPoiCategory

public interface PoiCategory
This class represents a category for PointOfInterest. Every PoiCategory should have a unique title so that for two PoiCategorys a and b a.equals(b) if and only if a.title.equalsIgnoreCase(b.title).
  • Method Details

    • deepChildren

      Collection<PoiCategory> deepChildren()
      Returns:
      All child categories of the category, including their children.
    • getChildren

      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

      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.