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()
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
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object