- Timestamp:
- 2008-01-13T23:41:49+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r517 r522 145 145 } 146 146 147 private static class NodeCount extends Match { 148 private int count; 149 public NodeCount(int count) {this.count = count;} 150 @Override public boolean match(OsmPrimitive osm) { 151 return osm instanceof Way && ((Way) osm).nodes.size() == count; 152 } 153 @Override public String toString() {return "nodes="+count;} 154 } 155 147 156 private static class Modified extends Match { 148 157 @Override public boolean match(OsmPrimitive osm) { … … 261 270 } else if (key.equals("user")) { 262 271 return new UserMatch(value); 272 } else if (key.equals("nodes")) { 273 return new NodeCount(Integer.parseInt(value)); 263 274 } else if (key.equals("id")) { 264 275 try {
Note:
See TracChangeset
for help on using the changeset viewer.