Modifier and Type | Class and Description |
---|---|
static class |
Note.State |
Modifier and Type | Field and Description |
---|---|
private Date |
closedAt |
private List<NoteComment> |
comments |
private Date |
createdAt |
private long |
id |
private LatLon |
latLon |
private Note.State |
state |
Constructor and Description |
---|
Note(LatLon latLon)
Create a note with a given location
|
Modifier and Type | Method and Description |
---|---|
void |
addComment(NoteComment comment) |
boolean |
equals(Object obj)
Compares notes by OSM ID
|
Date |
getClosedAt() |
List<NoteComment> |
getComments() |
Date |
getCreatedAt() |
NoteComment |
getFirstComment()
Returns the comment that was submitted by the user when creating the note
|
long |
getId() |
LatLon |
getLatLon() |
Note.State |
getState() |
int |
hashCode() |
void |
setClosedAt(Date closedAt) |
void |
setCreatedAt(Date createdAt) |
void |
setId(long id) |
void |
setState(Note.State state) |
void |
updateWith(Note note)
Copies values from a new note into an existing one.
|
private long id
private Note.State state
private List<NoteComment> comments
public long getId()
public void setId(long id)
public Date getCreatedAt()
public void setCreatedAt(Date createdAt)
public Date getClosedAt()
public void setClosedAt(Date closedAt)
public Note.State getState()
public void setState(Note.State state)
public List<NoteComment> getComments()
public void addComment(NoteComment comment)
public NoteComment getFirstComment()
public void updateWith(Note note)
note
- New values to copy