public class CommentSet
extends java.lang.Object
Constructor and Description |
---|
CommentSet() |
Modifier and Type | Method and Description |
---|---|
void |
add(Comment comment)
Adds a new comment.
|
void |
clear()
Clears the result set.
|
boolean |
first()
Moves to the first comment.
|
java.util.Date |
getCreatedAt()
Gets the comment created at
|
UserDto |
getCreator()
Gets the comment creator
|
java.lang.Long |
getId()
Gets the id number of the comment.
|
java.util.List<MentionDto> |
getMentions()
Gets the mentions of the current comment
|
java.lang.String |
getText()
Gets the comment text of current comment
|
boolean |
hasNewer()
Gets whether a newer comment exists
|
boolean |
hasOlder()
Gets whether an older comment exists
|
boolean |
last()
Moves to the last comment.
|
boolean |
next()
Moves to the next comment.
|
boolean |
previous()
Moves to the previous comment.
|
void |
setNewer(boolean newer) |
void |
setOlder(boolean older) |
int |
size()
Gets the count of the comment set.
|
public void setNewer(boolean newer)
public void setOlder(boolean older)
public void add(Comment comment)
comment
- comment objectpublic void clear()
public boolean previous()
public boolean next()
public boolean first()
public boolean last()
public java.lang.Long getId()
public int size()
public java.lang.String getText()
public java.util.Date getCreatedAt()
public UserDto getCreator()
public java.util.List<MentionDto> getMentions()
public boolean hasNewer()
public boolean hasOlder()