public class InMemoryListDataSet extends Object implements OsmEntityProvider
Constructor and Description |
---|
InMemoryListDataSet() |
Modifier and Type | Method and Description |
---|---|
OsmBounds |
getBounds() |
OsmNode |
getNode(long id)
Get the node with the given id.
|
List<OsmNode> |
getNodes() |
OsmRelation |
getRelation(long id)
Get the relation with the given id.
|
List<OsmRelation> |
getRelations() |
OsmWay |
getWay(long id)
Get the way with the given id.
|
List<OsmWay> |
getWays() |
boolean |
hasBounds() |
void |
setBounds(OsmBounds bounds) |
void |
setNodes(List<OsmNode> nodes) |
void |
setRelations(List<OsmRelation> relations) |
void |
setWays(List<OsmWay> ways) |
void |
sort() |
void |
sort(Comparator<? super OsmEntity> comparator) |
void |
sort(Comparator<? super OsmNode> nodeComparator,
Comparator<? super OsmWay> wayComparator,
Comparator<? super OsmRelation> relationComparator) |
public boolean hasBounds()
public OsmBounds getBounds()
public void setBounds(OsmBounds bounds)
public List<OsmRelation> getRelations()
public void setRelations(List<OsmRelation> relations)
public void sort()
public void sort(Comparator<? super OsmEntity> comparator)
public void sort(Comparator<? super OsmNode> nodeComparator, Comparator<? super OsmWay> wayComparator, Comparator<? super OsmRelation> relationComparator)
public OsmNode getNode(long id) throws EntityNotFoundException
OsmEntityProvider
getNode
in interface OsmEntityProvider
id
- the node's id.EntityNotFoundException
- if the implementation cannot return this entity.public OsmWay getWay(long id) throws EntityNotFoundException
OsmEntityProvider
getWay
in interface OsmEntityProvider
id
- the way's idEntityNotFoundException
- if the implementation cannot return this entity.public OsmRelation getRelation(long id) throws EntityNotFoundException
OsmEntityProvider
getRelation
in interface OsmEntityProvider
id
- the relation's id.EntityNotFoundException
- if the implementation cannot return this entity.