Changeset 8 in josm for src/org/openstreetmap/josm/data/osm/Node.java
- Timestamp:
- 2005-10-03T04:18:02+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/osm/Node.java
r7 r8 2 2 3 3 import java.util.Collection; 4 import java.util.Collections; 4 5 import java.util.LinkedList; 5 6 6 7 import org.openstreetmap.josm.data.GeoPoint; 8 import org.openstreetmap.josm.data.osm.visitor.Visitor; 7 9 8 10 … … 19 21 public GeoPoint coor; 20 22 23 /** 24 * The list of line segments, this node is part of. 25 */ 26 transient Collection<LineSegment> parentSegment = new LinkedList<LineSegment>(); 27 28 /** 29 * Returns a read-only list of all segments this node is in. 30 * @return A list of all segments. Readonly. 31 */ 32 public Collection<LineSegment> getParentSegments() { 33 return Collections.unmodifiableCollection(parentSegment); 34 } 35 21 36 /** 22 37 * Nodes are equal when their coordinates are equal. … … 49 64 return nodes; 50 65 } 51 52 66 67 @Override 68 public void visit(Visitor visitor) { 69 visitor.visit(this); 70 } 53 71 }
Note:
See TracChangeset
for help on using the changeset viewer.