Changeset 9949 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2016-03-07T21:45:35+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/gpx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxTrack.java
r8510 r9949 9 9 /** 10 10 * Read-only gpx track. Implementations doesn't have to be immutable, but should always be thread safe. 11 * 11 * @since 444 12 12 */ 13 13 public interface GpxTrack extends IWithAttributes { 14 14 15 /** 16 * Returns the track segments. 17 * @return the track segments 18 */ 15 19 Collection<GpxTrackSegment> getSegments(); 16 20 21 /** 22 * Returns the track attributes. 23 * @return the track attributes 24 */ 17 25 Map<String, Object> getAttributes(); 18 26 27 /** 28 * Returns the track bounds. 29 * @return the track bounds 30 */ 19 31 Bounds getBounds(); 20 32 33 /** 34 * Returns the track length. 35 * @return the track length 36 */ 21 37 double length(); 22 38 23 39 /** 24 * 40 * Returns the number of times this track has been changed. 25 41 * @return Number of times this track has been changed. Always 0 for read-only tracks 26 42 */ -
trunk/src/org/openstreetmap/josm/data/gpx/GpxTrackSegment.java
r8510 r9949 8 8 /** 9 9 * Read-only gpx track segments. Implementations doesn't have to be immutable, but should always be thread safe. 10 * 10 * @since 2907 11 11 */ 12 12 public interface GpxTrackSegment { 13 13 14 /** 15 * Returns the segment bounds. 16 * @return the segment bounds 17 */ 14 18 Bounds getBounds(); 15 19 20 /** 21 * Returns the segment waypoints. 22 * @return the segment waypoints 23 */ 16 24 Collection<WayPoint> getWayPoints(); 17 25 26 /** 27 * Returns the segment length. 28 * @return the segment length 29 */ 18 30 double length(); 19 31 20 32 /** 21 * 33 * Returns the number of times this track has been changed 22 34 * @return Number of times this track has been changed. Always 0 for read-only segments 23 35 */ -
trunk/src/org/openstreetmap/josm/data/gpx/ImmutableGpxTrack.java
r8510 r9949 11 11 import org.openstreetmap.josm.data.Bounds; 12 12 13 /** 14 * Immutable GPX track. 15 * @since 2907 16 */ 13 17 public class ImmutableGpxTrack extends WithAttributes implements GpxTrack { 14 18 … … 17 21 private final Bounds bounds; 18 22 23 /** 24 * Constructs a new {@code ImmutableGpxTrack}. 25 * @param trackSegs track segments 26 * @param attributes track attributes 27 */ 19 28 public ImmutableGpxTrack(Collection<Collection<WayPoint>> trackSegs, Map<String, Object> attributes) { 20 29 List<GpxTrackSegment> newSegments = new ArrayList<>();
Note:
See TracChangeset
for help on using the changeset viewer.