|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.zuercher.gpx2map.data.AbstractGpxEntity
us.zuercher.gpx2map.data.Route
public class Route
Route represents a GPX route. Routes are comprised of zero or more
RoutePoint
objects.
Route supports the following properties:
Name | Type |
---|---|
name | string |
cmt | string |
desc | string |
src | string |
link | string |
type | string |
number | integer |
Field Summary | |
---|---|
protected static Set<String> |
integerPropertyNames
Integer property names. |
private static List<String> |
nameLikePropertyNames
Subset of stringPropertyNames . |
private List<RoutePoint> |
routePoints
RoutePoints that comprise this Route. |
protected static Set<String> |
stringPropertyNames
String property names. |
Fields inherited from class us.zuercher.gpx2map.data.AbstractGpxEntity |
---|
dateFormatter |
Constructor Summary | |
---|---|
Route()
Constructs a new Route. |
Method Summary | |
---|---|
(package private) void |
addRoutePoint(RoutePoint routePoint)
Adds a RoutePoint to this route. |
boolean |
equals(Object other)
Tests whether this Route is equal to another. |
boolean |
equals(Route other)
Tests whether this Route is equal to another. |
Set<String> |
getDateTimePropertyNames()
Returns an empty set. |
Set<String> |
getDecimalPropertyNames()
Returns an empty set. |
Set<String> |
getIntegerPropertyNames()
Returns the Route's integer property names . |
String |
getName()
Get this route's name. |
Set<String> |
getStringPropertyNames()
Returns the Route's string property names . |
int |
hashCode()
Computes a reasonable hash code for this Route. |
Iterator<RoutePoint> |
iterator()
Returns an Iterator over this Route's
RoutePoints . |
String |
toExtendedString(String lineSep)
Returns a string representation of this Route based on the Route's properties and RoutePoints . |
String |
toString()
Returns a simple string representation of this Route based on the route's name, if any. |
Methods inherited from class us.zuercher.gpx2map.data.AbstractGpxEntity |
---|
equals, getDateTimeProperty, getDecimalProperty, getIntegerProperty, getStringProperty, setDateTimeProperty, setDecimalProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Set<String> stringPropertyNames
private static final List<String> nameLikePropertyNames
stringPropertyNames
.
protected static final Set<String> integerPropertyNames
private final List<RoutePoint> routePoints
RoutePoints
that comprise this Route.
Constructor Detail |
---|
public Route()
Method Detail |
---|
void addRoutePoint(RoutePoint routePoint)
RoutePoint
to this route.
routePoint
- the RoutePoint
to add.public String getName()
nameLikePropertyNames
set for this route.
public Iterator<RoutePoint> iterator()
Iterator
over this Route's
RoutePoints
.
iterator
in interface Iterable<RoutePoint>
Iterator
over this Route's
RoutePoints
.public int hashCode()
hashCode
in class AbstractGpxEntity
public boolean equals(Route other)
RoutePoints
to be equal.
other
- another Route
public boolean equals(Object other)
RoutePoints
to be equal.
equals
in class AbstractGpxEntity
other
- another Route
ClassCastException
- if other
is a not a
Route
public String toString()
toString
in class AbstractGpxEntity
public String toExtendedString(String lineSep)
RoutePoints
.
lineSep
- line separate character
public Set<String> getStringPropertyNames()
string property names
.
getStringPropertyNames
in class AbstractGpxEntity
AbstractGpxEntity.getStringPropertyNames()
public Set<String> getDecimalPropertyNames()
getDecimalPropertyNames
in class AbstractGpxEntity
AbstractGpxEntity.getDecimalPropertyNames()
public Set<String> getIntegerPropertyNames()
integer property names
.
getIntegerPropertyNames
in class AbstractGpxEntity
AbstractGpxEntity.getIntegerPropertyNames()
public Set<String> getDateTimePropertyNames()
getDateTimePropertyNames
in class AbstractGpxEntity
AbstractGpxEntity.getDateTimePropertyNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |