Changeset 9854 in josm for trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
- Timestamp:
- 2016-02-23T02:11:42+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r9073 r9854 11 11 import java.util.List; 12 12 import java.util.Map; 13 import java.util.NoSuchElementException; 13 14 import java.util.Set; 14 15 … … 32 33 public boolean fromServer; 33 34 35 /** Creator (usually software) */ 34 36 public String creator; 35 37 38 /** Tracks */ 36 39 public final Collection<GpxTrack> tracks = new LinkedList<>(); 40 /** Routes */ 37 41 public final Collection<GpxRoute> routes = new LinkedList<>(); 42 /** Waypoints */ 38 43 public final Collection<WayPoint> waypoints = new LinkedList<>(); 39 44 … … 46 51 public final Set<DataSource> dataSources = new HashSet<>(); 47 52 53 /** 54 * Merges data from another object. 55 * @param other existing GPX data 56 */ 48 57 public void mergeFrom(GpxData other) { 49 58 if (storageFile == null && other.storageFile != null) { … … 361 370 } 362 371 372 /** 373 * Resets the internal caches of east/north coordinates. 374 */ 363 375 public void resetEastNorthCache() { 364 376 if (waypoints != null) { … … 401 413 private final boolean[] trackVisibility; 402 414 415 /** 416 * Constructs a new {@code LinesIterator}. 417 * @param data GPX data 418 * @param trackVisibility An array indicating which tracks should be 419 * included in the iteration. Can be null, then all tracks are included. 420 */ 403 421 public LinesIterator(GpxData data, boolean[] trackVisibility) { 404 422 itTracks = data.tracks.iterator(); … … 416 434 @Override 417 435 public Collection<WayPoint> next() { 436 if (!hasNext()) { 437 throw new NoSuchElementException(); 438 } 418 439 Collection<WayPoint> current = next; 419 440 next = getNext();
Note:
See TracChangeset
for help on using the changeset viewer.