public class NoteComment extends 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 Date |
commentTimestamp |
private boolean |
isNew |
private String |
text |
private User |
user |
| Constructor and Description |
|---|
NoteComment(Date createDate,
User user,
String commentText,
NoteComment.Action action,
boolean isNew) |
| Modifier and Type | Method and Description |
|---|---|
Date |
getCommentTimestamp() |
NoteComment.Action |
getNoteAction() |
String |
getText() |
User |
getUser() |
boolean |
isNew() |
void |
setNew(boolean isNew) |
private final Date commentTimestamp
private final NoteComment.Action action
private boolean isNew
public NoteComment(Date createDate, User user, 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 Date getCommentTimestamp()
public NoteComment.Action getNoteAction()
public void setNew(boolean isNew)
public boolean isNew()