Changeset 30737 in osm for applications/editors/josm/plugins/editgpx/src/org/openstreetmap
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java
r28689 r30737 12 12 public class EditGpxData { 13 13 14 private final List<EditGpxTrack> tracks = new ArrayList< EditGpxTrack>();14 private final List<EditGpxTrack> tracks = new ArrayList<>(); 15 15 // Only copy of routes and waypoints to preserve all info when converting back to gpx track 16 private final List<GpxRoute> routes = new ArrayList< GpxRoute>();17 private final List<WayPoint> waypoints = new ArrayList< WayPoint>();16 private final List<GpxRoute> routes = new ArrayList<>(); 17 private final List<WayPoint> waypoints = new ArrayList<>(); 18 18 19 19 public void load(GpxData data) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java
r28689 r30737 19 19 public class EditGpxTrack { 20 20 21 private final List<EditGpxTrackSegment> segments = new ArrayList< EditGpxTrackSegment>();22 private final Map<String, Object> attributes = new HashMap< String, Object>();21 private final List<EditGpxTrackSegment> segments = new ArrayList<>(); 22 private final Map<String, Object> attributes = new HashMap<>(); 23 23 private boolean isDeleted; 24 24 … … 39 39 public GpxTrack createGpxTrack(boolean anonTime, double minTime) { 40 40 41 Collection<Collection<WayPoint>> wayPoints = new ArrayList< Collection<WayPoint>>();41 Collection<Collection<WayPoint>> wayPoints = new ArrayList<>(); 42 42 43 43 final DateFormat iso8601 = -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrackSegment.java
r28689 r30737 10 10 public class EditGpxTrackSegment { 11 11 12 private final List<EditGpxWayPoint> wayPoints = new ArrayList< EditGpxWayPoint>();12 private final List<EditGpxWayPoint> wayPoints = new ArrayList<>(); 13 13 private boolean deleted; 14 14 … … 24 24 25 25 public List<WayPoint> getNonDeletedWaypoints() { 26 List<WayPoint> result = new ArrayList< WayPoint>();26 List<WayPoint> result = new ArrayList<>(); 27 27 28 28 for (EditGpxWayPoint wp: wayPoints) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java
r28689 r30737 16 16 this.time = wayPoint.time; 17 17 this.coor = new CachedLatLon(wayPoint.getCoor()); 18 this.attributes = new HashMap< String, Object>(wayPoint.attr);18 this.attributes = new HashMap<>(wayPoint.attr); 19 19 } 20 20
Note:
See TracChangeset
for help on using the changeset viewer.