public class ImmutableGpxTrack extends WithAttributes implements GpxTrack
Modifier and Type | Field and Description |
---|---|
private Bounds |
bounds |
private double |
length |
private java.util.Collection<GpxTrackSegment> |
segments |
attr
JOSM_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(java.util.Collection<java.util.Collection<WayPoint>> trackSegs,
java.util.Map<java.lang.String,java.lang.Object> attributes) |
Modifier and Type | Method and Description |
---|---|
private Bounds |
calculateBounds() |
private double |
calculateLength() |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes() |
Bounds |
getBounds() |
java.util.Collection<GpxTrackSegment> |
getSegments() |
int |
getUpdateCount() |
double |
length() |
addExtension, get, getCollection, getString, put
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addExtension, get, getCollection, getString, put
private final java.util.Collection<GpxTrackSegment> segments
private final double length
public ImmutableGpxTrack(java.util.Collection<java.util.Collection<WayPoint>> trackSegs, java.util.Map<java.lang.String,java.lang.Object> attributes)
private double calculateLength()
private Bounds calculateBounds()
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
getAttributes
in interface GpxTrack
public java.util.Collection<GpxTrackSegment> getSegments()
getSegments
in interface GpxTrack
public int getUpdateCount()
getUpdateCount
in interface GpxTrack