Class Reply

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

public class Reply extends Object
  • Constructor Details

    • Reply

      public Reply()
    • Reply

      public Reply(long threadId, String userId, String content)
    • Reply

      public Reply(long threadId, String userId, Long parentId, String content)
  • Method Details

    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getThreadId

      public long getThreadId()
    • setThreadId

      public void setThreadId(long threadId)
    • getUserId

      public String getUserId()
    • setUserId

      public void setUserId(String userId)
    • getParentId

      public Long getParentId()
    • setParentId

      public void setParentId(Long parentId)
    • getContent

      public String getContent()
    • setContent

      public void setContent(String content)
    • getCreatedAt

      public Timestamp getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(Timestamp createdAt)
    • getUpdatedAt

      public Timestamp getUpdatedAt()
    • setUpdatedAt

      public void setUpdatedAt(Timestamp updatedAt)
    • getThread

      public Thread getThread()
    • setThread

      public void setThread(Thread thread)
    • getParent

      public Reply getParent()
    • setParent

      public void setParent(Reply parent)
    • getChildren

      public List<Reply> getChildren()
    • setChildren

      public void setChildren(List<Reply> children)
    • addChild

      public void addChild(Reply child)
    • removeChild

      public void removeChild(Reply child)
    • isTopLevel

      public boolean isTopLevel()
    • isNested

      public boolean isNested()
    • getThreadTitle

      public String getThreadTitle()
    • getChildCount

      public int getChildCount()
    • 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