Files
artloglaby/java/org/artisanlogiciel/osm/NodeRef.java
philippe lhardy 8af19bdb59 first .osm format import
- import osm convert it to Drawing and use it as resolved path.
- Not ready , first test over lab/valbonne_oct_2020.osm
2020-10-31 15:44:23 +01:00

38 lines
632 B
Java

package org.artisanlogiciel.osm;
public class NodeRef {
long id;
Node node;
public NodeRef(long id) {
this.id = id;
}
public void setNode(Node node) {
this.node = node;
}
public Node getNode()
{
return node;
}
public String toString()
{
return node != null ? node.toString(): "nd:" + id;
}
@Override
public int hashCode() {
return Long.hashCode(id);
}
@Override
public boolean equals(Object o) {
if ( o instanceof NodeRef ) {
return ((NodeRef) o).id == id;
}
return false;
}
}