Modifier and Type | Field and Description |
---|---|
private Date |
closedAt
the date this changeset was closed at
|
private ChangesetDataSet |
content
the changeset content
|
private Date |
createdAt
date this changeset was created at
|
private int |
id
the changeset id
|
private boolean |
incomplete
indicates whether this changeset is incomplete.
|
private LatLon |
max
the max. coordinates of the bounding box of this changeset
|
static int |
MAX_COMMENT_LENGTH
The maximum changeset comment text length allowed by API 0.6
|
private LatLon |
min
the min. coordinates of the bounding box of this changeset
|
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 |
---|---|
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() |
ChangesetDataSet |
getContent() |
Date |
getCreatedAt() |
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 |
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_COMMENT_LENGTH
private int id
private boolean open
private boolean incomplete
private ChangesetDataSet content
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 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)