public class ImmutableGpxTrackSegment extends java.lang.Object implements GpxTrackSegment
| Modifier and Type | Field and Description |
|---|---|
private Bounds |
bounds |
private double |
length |
private java.util.List<WayPoint> |
wayPoints |
| Constructor and Description |
|---|
ImmutableGpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
Constructs a new
ImmutableGpxTrackSegment. |
| Modifier and Type | Method and Description |
|---|---|
private Bounds |
calculateBounds() |
private double |
calculateLength() |
boolean |
equals(java.lang.Object obj) |
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.
|
int |
hashCode() |
double |
length()
Returns the segment length.
|
private final double length
public ImmutableGpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
ImmutableGpxTrackSegment.wayPoints - list of waypointsprivate Bounds calculateBounds()
private double calculateLength()
public Bounds getBounds()
GpxTrackSegmentgetBounds in interface GpxTrackSegmentpublic java.util.Collection<WayPoint> getWayPoints()
GpxTrackSegmentgetWayPoints in interface GpxTrackSegmentpublic double length()
GpxTrackSegmentlength in interface GpxTrackSegmentpublic int getUpdateCount()
GpxTrackSegmentgetUpdateCount in interface GpxTrackSegmentpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object