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()
Returns the segment bounds.
|
int |
getUpdateCount()
Returns the number of times this track has been changed
|
java.util.Collection<WayPoint> |
getWayPoints()
Returns the segment waypoints.
|
double |
length()
Returns the segment length.
|
private final double length
public ImmutableGpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
private Bounds calculateBounds()
private double calculateLength()
public Bounds getBounds()
GpxTrackSegment
getBounds
in interface GpxTrackSegment
public java.util.Collection<WayPoint> getWayPoints()
GpxTrackSegment
getWayPoints
in interface GpxTrackSegment
public double length()
GpxTrackSegment
length
in interface GpxTrackSegment
public int getUpdateCount()
GpxTrackSegment
getUpdateCount
in interface GpxTrackSegment