Class Category

java.lang.Object
com.serinity.forumcontrol.model.Category

public class Category extends Object
  • Constructor Details

    • Category

      public Category()
    • Category

      public Category(String name, String slug, String description, Long parentId)
  • Method Details

    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getSlug

      public String getSlug()
    • setSlug

      public void setSlug(String slug)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getParentId

      public Long getParentId()
    • setParentId

      public void setParentId(Long parentId)
    • getThreads

      public List<Thread> getThreads()
    • setThreads

      public void setThreads(List<Thread> threads)
    • getParent

      public Category getParent()
    • setParent

      public void setParent(Category parent)
    • getChildren

      public List<Category> getChildren()
    • setChildren

      public void setChildren(List<Category> children)
    • addThread

      public void addThread(Thread thread)
    • removeThread

      public void removeThread(Thread thread)
    • addChild

      public void addChild(Category child)
    • removeChild

      public void removeChild(Category child)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object