public class ImmutableGpxTrackSegment extends java.lang.Object implements GpxTrackSegment
| Modifier and Type | Field and Description |
|---|---|
private Bounds |
bounds |
private double |
length |
private java.util.Collection<WayPoint> |
wayPoints |
| Constructor and Description |
|---|
ImmutableGpxTrackSegment(java.util.Collection<WayPoint> wayPoints) |
| Modifier and Type | Method and Description |
|---|---|
private Bounds |
calculateBounds() |
private double |
calculateLength() |
Bounds |
getBounds() |
int |
getUpdateCount() |
java.util.Collection<WayPoint> |
getWayPoints() |
double |
length() |
private final double length
public ImmutableGpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
private Bounds calculateBounds()
private double calculateLength()
public Bounds getBounds()
getBounds in interface GpxTrackSegmentpublic java.util.Collection<WayPoint> getWayPoints()
getWayPoints in interface GpxTrackSegmentpublic double length()
length in interface GpxTrackSegmentpublic int getUpdateCount()
getUpdateCount in interface GpxTrackSegment