diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-01 16:48:50 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-01 16:48:50 +0200 |
commit | 087f90fbb50796ae15c84ab6e321f5ddf8dceeec (patch) | |
tree | 974b1a822f25a30d2fed3e8fbdd1f782190d82f8 /main/src/cgeo/geocaching/IWaypoint.java | |
parent | b69cad6442d9d492fb4277fb4045ef4d8e5fecdf (diff) | |
download | cgeo-087f90fbb50796ae15c84ab6e321f5ddf8dceeec.zip cgeo-087f90fbb50796ae15c84ab6e321f5ddf8dceeec.tar.gz cgeo-087f90fbb50796ae15c84ab6e321f5ddf8dceeec.tar.bz2 |
Refactoring: use IWaypoint and cgCache instead of cgCoord object
Most of the time, the cgCoord is built from an existing cache or from an
existing waypoint. And most of the time, using the IWaypoint interface
is fine.
We can see a cache as being a waypoint as well, so by making it
implement IWaypoint we can manipulate IWaypoint objects every time we
were manipulating cgCoord ones without copying.
After this refactoring, cgCoord was only used to hold some partial cache
information. cgCache can be used instead, and cgCoord is not needed
anymore.
Diffstat (limited to 'main/src/cgeo/geocaching/IWaypoint.java')
-rw-r--r-- | main/src/cgeo/geocaching/IWaypoint.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/IWaypoint.java b/main/src/cgeo/geocaching/IWaypoint.java index 870fb12..3e26052 100644 --- a/main/src/cgeo/geocaching/IWaypoint.java +++ b/main/src/cgeo/geocaching/IWaypoint.java @@ -18,4 +18,6 @@ public interface IWaypoint extends ILogable { public abstract WaypointType getWaypointType(); + public abstract String getCoordType(); + } |