|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.domain.v0_5.Entity
org.openstreetmap.osmosis.core.domain.v0_5.Node
public class Node
A data class representing a single OSM node.
Constructor Summary | |
---|---|
Node(long id,
java.util.Date timestamp,
OsmUser user,
double latitude,
double longitude)
Creates a new instance. |
|
Node(long id,
TimestampContainer timestampContainer,
OsmUser user,
double latitude,
double longitude)
Creates a new instance. |
|
Node(StoreReader sr,
StoreClassRegister scr)
Creates a new instance. |
Method Summary | |
---|---|
int |
compareTo(Node comparisonNode)
Compares this node to the specified node. |
boolean |
equals(java.lang.Object o)
|
double |
getLatitude()
|
double |
getLongitude()
|
EntityType |
getType()
Returns the specific data type represented by this entity. |
int |
hashCode()
|
void |
store(StoreWriter sw,
StoreClassRegister scr)
Stores all state to the specified store writer. |
Methods inherited from class org.openstreetmap.osmosis.core.domain.v0_5.Entity |
---|
addTag, addTags, compareTags, getFormattedTimestamp, getId, getTagList, getTimestamp, getUser |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Node(long id, java.util.Date timestamp, OsmUser user, double latitude, double longitude)
id
- The unique identifier.timestamp
- The last updated timestamp.user
- The user that last modified this entity.latitude
- The geographic latitude.longitude
- The geographic longitude.public Node(long id, TimestampContainer timestampContainer, OsmUser user, double latitude, double longitude)
id
- The unique identifier.timestampContainer
- The container holding the timestamp in an alternative
timestamp representation.user
- The user that last modified this entity.latitude
- The geographic latitude.longitude
- The geographic longitude.public Node(StoreReader sr, StoreClassRegister scr)
sr
- The store to read state from.scr
- Maintains the mapping between classes and their identifiers
within the store.Method Detail |
---|
public void store(StoreWriter sw, StoreClassRegister scr)
store
in interface Storeable
store
in class Entity
sw
- The writer that persists data to an underlying store.scr
- Maintains the mapping between classes and their identifiers
within the store.public EntityType getType()
getType
in class Entity
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Node comparisonNode)
compareTo
in interface java.lang.Comparable<Node>
comparisonNode
- The node to compare to.
public double getLatitude()
public double getLongitude()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |