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