Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/data/osm/history/History.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/history/History.java
r8390 r8510 32 32 } 33 33 } 34 return new History(history.id, history.type, out);34 return new History(history.id, history.type, out); 35 35 } 36 36 … … 96 96 } 97 97 ); 98 return new History(id, type, copy);98 return new History(id, type, copy); 99 99 } 100 100 … … 232 232 public boolean contains(long version) { 233 233 for (HistoryOsmPrimitive primitive: versions) { 234 if (primitive.matches(id, version))234 if (primitive.matches(id, version)) 235 235 return true; 236 236 } … … 247 247 public HistoryOsmPrimitive getByVersion(long version) { 248 248 for (HistoryOsmPrimitive primitive: versions) { 249 if (primitive.matches(id, version))249 if (primitive.matches(id, version)) 250 250 return primitive; 251 251 } … … 265 265 if (h.versions.isEmpty()) 266 266 return null; 267 if (h.get(0).getTimestamp().compareTo(date) > 0)267 if (h.get(0).getTimestamp().compareTo(date) > 0) 268 268 return null; 269 for (int i = 1; i < h.versions.size(); i++) {269 for (int i = 1; i < h.versions.size(); i++) { 270 270 if (h.get(i-1).getTimestamp().compareTo(date) <= 0 271 271 && h.get(i).getTimestamp().compareTo(date) >= 0)
Note:
See TracChangeset
for help on using the changeset viewer.