Class MenuItemAncestorList

java.lang.Object
com.broadleafcommerce.adminnavigation.domain.MenuItemAncestorList
All Implemented Interfaces:
Serializable

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

  • Method Details

    • getNavMenuItem

      public NavMenuItem getNavMenuItem()
      Returns:
      the menu item whose ancestors are being listed
    • getAncestors

      public List<NavMenuItem> getAncestors()
      Returns:
      a list of ancestors of the menu item, from the immediate parent to the top-level menu item
    • 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