Class CategoryAncestorList

java.lang.Object
com.broadleafcommerce.catalog.domain.category.CategoryAncestorList
All Implemented Interfaces:
Serializable

public final class CategoryAncestorList extends Object implements Serializable
A payload object intended to hold a Category and a list of its ancestors.
Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

  • Method Details

    • getCategory

      public Category getCategory()
      Returns:
      the category whose ancestors are being listed
    • getAncestors

      public List<Category> getAncestors()
      Returns:
      a list of ancestors of the category, from the immediate parent to the top-level root category
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object