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() |
Boolean |
getIsNew() |
NoteComment.Action |
getNoteAction() |
String |
getText() |
User |
getUser() |
void |
setIsNew(Boolean isNew) |
private Date commentTimestamp
private NoteComment.Action action
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()