Changeset 1677 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeVisitor.java
- Timestamp:
- 17.06.2009 10:04:22 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeVisitor.java
r1640 r1677 218 218 /** 219 219 * Tries to merge a primitive <code>other</code> into an existing primitive with the same id. 220 * 221 * @param myPrimitives the complete set of my primitives (potential merge targets) 220 * 221 * @param myPrimitives the complete set of my primitives (potential merge targets) 222 222 * @param myPrimitivesWithID the map of primitives (potential merge targets) with an id <> 0, for faster lookup 223 * by id. Key is the id, value the primitive with the given value. myPrimitives.valueSet() is a 223 * by id. Key is the id, value the primitive with the given value. myPrimitives.valueSet() is a 224 224 * subset of primitives. 225 225 * @param other the other primitive which is to be merged with a primitive in primitives if possible 226 * @return true, if this method was able to merge <code>other</code> with an existing node; false, otherwise 226 * @return true, if this method was able to merge <code>other</code> with an existing node; false, otherwise 227 227 */ 228 228 private <P extends OsmPrimitive> boolean mergeById( 229 229 Collection<P> myPrimitives, HashMap<Long, P> myPrimitivesWithID, P other) { 230 230 231 231 // merge other into an existing primitive with the same id, if possible 232 232 // … … 246 246 } 247 247 248 // try to merge into one of the existing primitives 248 // try to merge into one of the existing primitives 249 249 // 250 250 for (P my : myPrimitives) {
Note: See TracChangeset
for help on using the changeset viewer.
