diff options
Diffstat (limited to 'main/src/cgeo/geocaching/cgWaypoint.java')
| -rw-r--r-- | main/src/cgeo/geocaching/cgWaypoint.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgWaypoint.java b/main/src/cgeo/geocaching/cgWaypoint.java index 5c926db..7287d2d 100644 --- a/main/src/cgeo/geocaching/cgWaypoint.java +++ b/main/src/cgeo/geocaching/cgWaypoint.java @@ -236,4 +236,12 @@ public class cgWaypoint implements IWaypoint, Comparable<cgWaypoint> { return name + " " + waypointType.getL10n(); } + /** + * Checks whether a given waypoint is a final and has coordinates + * + * @return True - waypoint is final and has coordinates, False - otherwise + */ + public boolean isFinalWithCoords() { + return WaypointType.FINAL == getWaypointType() && null != getCoords(); + } }
\ No newline at end of file |
