Class ArticleItem

  • All Implemented Interfaces:
    HelpItem


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

      • ArticleItem

        public ArticleItem(java.lang.Long id,
                           java.lang.Long sectionId,
                           java.lang.String name)
    • 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.
      • 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