org.openstreetmap.josm.data.gpx
Class ImmutableGpxTrackSegment
java.lang.Object
org.openstreetmap.josm.data.gpx.ImmutableGpxTrackSegment
- All Implemented Interfaces:
- GpxTrackSegment
public class ImmutableGpxTrackSegment
- extends java.lang.Object
- implements GpxTrackSegment
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wayPoints
private final java.util.Collection<WayPoint> wayPoints
bounds
private final Bounds bounds
length
private final double length
ImmutableGpxTrackSegment
public ImmutableGpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
calculateBounds
private Bounds calculateBounds()
calculateLength
private double calculateLength()
getBounds
public Bounds getBounds()
- Specified by:
getBounds
in interface GpxTrackSegment
getWayPoints
public java.util.Collection<WayPoint> getWayPoints()
- Specified by:
getWayPoints
in interface GpxTrackSegment
length
public double length()
- Specified by:
length
in interface GpxTrackSegment
getUpdateCount
public int getUpdateCount()
- Specified by:
getUpdateCount
in interface GpxTrackSegment
- Returns:
- Number of times this track has been changed. Always 0 for read-only segments
JOSM