Modifier and Type | Field and Description |
---|---|
private Date |
closedAt
the date this changeset was closed at
|
private int |
commentsCount
the number of comments for this changeset
|
private ChangesetDataSet |
content
the changeset content
|
private Date |
createdAt
date this changeset was created at
|
private List<ChangesetDiscussionComment> |
discussion
the changeset discussion
|
private int |
id
the changeset id
|
private boolean |
incomplete
indicates whether this changeset is incomplete.
|
private LatLon |
max
the max.
|
static int |
MAX_CHANGESET_TAG_LENGTH
The maximum changeset tag length allowed by API 0.6
|
private LatLon |
min
the min.
|
private boolean |
open
indicates whether this changeset is still open or not
|
private Map<String,String> |
tags
the map of tags
|
private User |
user
the user who owns the changeset
|
Constructor and Description |
---|
Changeset()
Creates a new changeset with id 0.
|
Changeset(Changeset other)
Creates a clone of
other |
Changeset(int id)
Creates a changeset with id
id . |
Modifier and Type | Method and Description |
---|---|
void |
addDiscussionComment(ChangesetDiscussionComment comment)
Adds a comment to the changeset discussion.
|
int |
compareTo(Changeset other) |
boolean |
equals(Object obj) |
String |
get(String key)
Replies the value of the given key; null, if there is no value for this key
|
Bounds |
getBounds() |
Date |
getClosedAt() |
int |
getCommentsCount()
Replies the number of comments for this changeset.
|
ChangesetDataSet |
getContent() |
Date |
getCreatedAt() |
List<ChangesetDiscussionComment> |
getDiscussion()
Replies the list of comments in the changeset discussion, if any.
|
String |
getDisplayName(NameFormatter formatter) |
int |
getId() |
Map<String,String> |
getKeys()
Replies the map of key/value pairs.
|
LatLon |
getMax() |
LatLon |
getMin() |
String |
getName() |
User |
getUser() |
boolean |
hasContent() |
boolean |
hasEqualSemanticAttributes(Changeset other) |
int |
hashCode() |
boolean |
hasKeys()
Replies true, if there is at least one key/value pair; false, otherwise
|
boolean |
isIncomplete() |
boolean |
isNew() |
boolean |
isOpen() |
Collection<String> |
keySet()
Replies the set of keys
|
void |
mergeFrom(Changeset other) |
void |
put(String key,
String value)
Sets a key/value pairs
|
void |
remove(String key)
Removes a given key/value pair
|
void |
removeAll()
Removes all tags
|
void |
setClosedAt(Date closedAt) |
void |
setCommentsCount(int commentsCount)
Sets the number of comments for this changeset.
|
void |
setContent(ChangesetDataSet content) |
void |
setCreatedAt(Date createdAt) |
void |
setId(int id) |
void |
setIncomplete(boolean incomplete) |
void |
setKeys(Map<String,String> keys)
Sets the map of key/value pairs
|
void |
setMax(LatLon max) |
void |
setMin(LatLon min) |
void |
setOpen(boolean open) |
void |
setUser(User user) |
void |
visit(Visitor v) |
public static final int MAX_CHANGESET_TAG_LENGTH
private int id
private boolean open
private int commentsCount
private boolean incomplete
private ChangesetDataSet content
private List<ChangesetDiscussionComment> discussion
public Changeset()
public Changeset(int id)
id
. If id > 0, sets incomplete to true.id
- the idpublic String getDisplayName(NameFormatter formatter)
public int getId()
public void setId(int id)
public Date getCreatedAt()
public void setCreatedAt(Date createdAt)
public Date getClosedAt()
public void setClosedAt(Date closedAt)
public boolean isOpen()
public void setOpen(boolean open)
public final int getCommentsCount()
public final void setCommentsCount(int commentsCount)
commentsCount
- the number of comments for this changesetpublic Map<String,String> getKeys()
Tagged
public void setKeys(Map<String,String> keys)
Tagged
public boolean isIncomplete()
public void setIncomplete(boolean incomplete)
public void put(String key, String value)
Tagged
public String get(String key)
Tagged
public void remove(String key)
Tagged
public boolean hasEqualSemanticAttributes(Changeset other)
public boolean hasKeys()
Tagged
public Collection<String> keySet()
Tagged
public boolean isNew()
public boolean hasContent()
public ChangesetDataSet getContent()
public void setContent(ChangesetDataSet content)
public final List<ChangesetDiscussionComment> getDiscussion()
public final void addDiscussionComment(ChangesetDiscussionComment comment)
comment
- the comment to add. Ignored if null