|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.zuercher.gpx2map.data.TrackSegment
public class TrackSegment
TrackSegment represents a track segment. Track segments are made up of
zero or more TrackPoint objects.
| Field Summary | |
|---|---|
private List<TrackPoint> |
points
TrackPoints that make up this TrackSegment. |
| Constructor Summary | |
|---|---|
TrackSegment()
Construct a new TrackSegment. |
|
| Method Summary | |
|---|---|
void |
addTrackPoint(TrackPoint point)
Add a TrackPoint to this TrackSegment. |
boolean |
equals(Object other)
Tests this TrackSegment for equality with another TrackSegment. |
boolean |
equals(TrackSegment other)
Tests this TrackSegment for equality with another TrackSegment. |
int |
hashCode()
Computes a reasonable hash code for this TrackSegment. |
Iterator<TrackPoint> |
iterator()
Returns an iterator over the TrackPoints comprising this TrackSegment. |
String |
toExtendedString(String lineSep)
Returns a complex string representation of this TrackSegement, using lineSep to delimit TrackPoint representations. |
String |
toString()
Returns a simple string representation of this TrackSegment. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final List<TrackPoint> points
| Constructor Detail |
|---|
public TrackSegment()
| Method Detail |
|---|
public void addTrackPoint(TrackPoint point)
TrackPoint to this TrackSegment.
point - the TrackPoint at add to this segment.public Iterator<TrackPoint> iterator()
iterator in interface Iterable<TrackPoint>public int hashCode()
hashCode in class Objectpublic boolean equals(TrackSegment other)
other - another TrackSegment
other are equalpublic boolean equals(Object other)
equals in class Objectother - another TrackSegment
other are equal
ClassCastException - if other is not a
TrackSegment.public String toString()
toString in class Objectpublic String toExtendedString(String lineSep)
lineSep to delimit TrackPoint representations.
lineSep - line separator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||