public class ImmutableGpxTrack extends WithAttributes implements GpxTrack
| Modifier and Type | Field and Description |
|---|---|
private Bounds |
bounds |
private double |
length |
private Collection<GpxTrackSegment> |
segments |
attrJOSM_EXTENSIONS_NAMESPACE_URI, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_EXTENSIONS, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, WPT_KEYS| Constructor and Description |
|---|
ImmutableGpxTrack(Collection<Collection<WayPoint>> trackSegs,
Map<String,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
private Bounds |
calculateBounds() |
private double |
calculateLength() |
Map<String,Object> |
getAttributes() |
Bounds |
getBounds() |
Collection<GpxTrackSegment> |
getSegments() |
int |
getUpdateCount() |
double |
length() |
addExtension, get, getCollection, getString, putclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddExtension, get, getCollection, getString, putprivate final Collection<GpxTrackSegment> segments
private final double length
public ImmutableGpxTrack(Collection<Collection<WayPoint>> trackSegs, Map<String,Object> attributes)
private double calculateLength()
private Bounds calculateBounds()
public Map<String,Object> getAttributes()
getAttributes in interface GpxTrackpublic Collection<GpxTrackSegment> getSegments()
getSegments in interface GpxTrackpublic int getUpdateCount()
getUpdateCount in interface GpxTrack