public abstract class OSMWay extends OSMObject
Constructor and Description |
---|
OSMWay(java.lang.Long id,
java.util.List<java.lang.Long> ids)
Construct an OSMWay.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Long> |
getNodeIDs()
Get the IDs of the way nodes.
|
void |
replace(java.lang.Long oldID,
java.lang.Long newID)
Replace a node ID in this way.
|
void |
setNodeIDs(java.util.List<java.lang.Long> newIDs)
Set the IDs of the way nodes.
|
public OSMWay(java.lang.Long id, java.util.List<java.lang.Long> ids)
id
- The ID of the way.ids
- The IDs of the nodes of the way.public java.util.List<java.lang.Long> getNodeIDs()
public void setNodeIDs(java.util.List<java.lang.Long> newIDs)
newIDs
- The new IDs of the nodes of this way.public void replace(java.lang.Long oldID, java.lang.Long newID)
oldID
- The old node ID.newID
- The new node ID.