public class NoteComment extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NoteComment.Action
Every comment has an associated action.
|
Modifier and Type | Field and Description |
---|---|
private NoteComment.Action |
action |
private java.util.Date |
commentTimestamp |
private boolean |
isNew |
private java.lang.String |
text |
private User |
user |
Constructor and Description |
---|
NoteComment(java.util.Date createDate,
User user,
java.lang.String commentText,
NoteComment.Action action,
boolean isNew) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCommentTimestamp() |
NoteComment.Action |
getNoteAction() |
java.lang.String |
getText() |
User |
getUser() |
boolean |
isNew() |
void |
setNew(boolean isNew) |
java.lang.String |
toString() |
private final java.lang.String text
private final java.util.Date commentTimestamp
private final NoteComment.Action action
private boolean isNew
public NoteComment(java.util.Date createDate, User user, java.lang.String commentText, NoteComment.Action action, boolean isNew)
createDate
- The time at which this comment was addeduser
- JOSM User object of the user who created the commentcommentText
- The text left by the user. Is sometimes blankaction
- The action associated with this commentisNew
- Whether or not this comment is new and needs to be uploadedpublic java.lang.String getText()
public java.util.Date getCommentTimestamp()
public NoteComment.Action getNoteAction()
public void setNew(boolean isNew)
public boolean isNew()
public java.lang.String toString()
toString
in class java.lang.Object