Class SectionItem

  • All Implemented Interfaces:
    HelpItem


    public class SectionItem
    extends java.lang.Object
    implements HelpItem
    A HelpItem for Help Center sections
    • Constructor Detail

      • SectionItem

        public SectionItem()
    • Method Detail

      • getViewType

        public int getViewType()
        Description copied from interface: HelpItem
        Gets the type of the item
        Specified by:
        getViewType in interface HelpItem
        Returns:
        the type of the item
      • getName

        public java.lang.String getName()
        Description copied from interface: HelpItem
        Gets the name of the item
        Specified by:
        getName in interface HelpItem
        Returns:
        the name of the item, or an empty String if there is no name.
      • getId

        public java.lang.Long getId()
        Description copied from interface: HelpItem
        Gets the ID of this item.
        Specified by:
        getId in interface HelpItem
        Returns:
        The ID of this item, or null if there is none.
      • getParentId

        public java.lang.Long getParentId()
        Description copied from interface: HelpItem
        Returns the ID of the parent item.
        Specified by:
        getParentId in interface HelpItem
        Returns:
        the ID of the parent item, or null if there is none.
      • getChildren

        public java.util.List<HelpItem> getChildren()
      • addArticle

        public void addArticle(ArticleItem articleItem)
      • getTotalArticlesCount

        public int getTotalArticlesCount()
        Gets the number of articles in this SectionItem
        Returns:
        the number of articles in this SectionItem
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object