Changeset 1862 in josm for trunk/src/org/openstreetmap/josm/actions/search
- Timestamp:
- 2009-07-27T21:09:44+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r1843 r1862 375 375 public NodeCount(int count) {this.count = count;} 376 376 @Override public boolean match(OsmPrimitive osm) { 377 return osm instanceof Way && ((Way) osm). nodes.size() == count;377 return osm instanceof Way && ((Way) osm).getNodesCount() == count; 378 378 } 379 379 @Override public String toString() {return "nodes="+count;} … … 394 394 @Override public boolean match(OsmPrimitive osm) { 395 395 if(!(osm instanceof Way)) return false; 396 int size = ((Way)osm). nodes.size();396 int size = ((Way)osm).getNodesCount(); 397 397 return (size >= minCount) && (size <= maxCount); 398 398 } … … 441 441 442 442 if (osm instanceof Way) { 443 for (Node n : ((Way)osm). nodes) {443 for (Node n : ((Way)osm).getNodes()) { 444 444 isParent |= child.match(n); 445 445 }
Note:
See TracChangeset
for help on using the changeset viewer.