diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-07-14 17:16:16 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-07-14 17:16:16 +0200 |
| commit | 53cecb4c955757ca13b93ba83630d249a1b7c405 (patch) | |
| tree | f36bd81b7c4f9010ff63f7789b0a8c6c98ad804c /main | |
| parent | 0b70e1d2450c9ee23ab27d203fd9fc42666289aa (diff) | |
| download | cgeo-53cecb4c955757ca13b93ba83630d249a1b7c405.zip cgeo-53cecb4c955757ca13b93ba83630d249a1b7c405.tar.gz cgeo-53cecb4c955757ca13b93ba83630d249a1b7c405.tar.bz2 | |
refactoring: remove IBasicCache interface
Diffstat (limited to 'main')
| -rw-r--r-- | main/src/cgeo/geocaching/IBasicCache.java | 46 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/ICache.java | 36 |
2 files changed, 34 insertions, 48 deletions
diff --git a/main/src/cgeo/geocaching/IBasicCache.java b/main/src/cgeo/geocaching/IBasicCache.java deleted file mode 100644 index 7e9ef11..0000000 --- a/main/src/cgeo/geocaching/IBasicCache.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - */ -package cgeo.geocaching; - -import cgeo.geocaching.enumerations.CacheSize; -import cgeo.geocaching.enumerations.CacheType; - -public interface IBasicCache extends ILogable, ICoordinates { - - public abstract String getGuid(); - - /** - * @return Tradi, multi etc. - */ - public abstract CacheType getType(); - - /** - * @return Micro, small etc. - */ - public abstract CacheSize getSize(); - - /** - * @return true if the user already found the cache - * - */ - public abstract boolean isFound(); - - /** - * @return true if the cache is disabled, false else - */ - public abstract boolean isDisabled(); - - /** - * @return Difficulty assessment - */ - public abstract float getDifficulty(); - - /** - * @return Terrain assessment - */ - public abstract float getTerrain(); - - - -} diff --git a/main/src/cgeo/geocaching/ICache.java b/main/src/cgeo/geocaching/ICache.java index a11f53d..b99d877 100644 --- a/main/src/cgeo/geocaching/ICache.java +++ b/main/src/cgeo/geocaching/ICache.java @@ -3,6 +3,8 @@ */ package cgeo.geocaching; +import cgeo.geocaching.enumerations.CacheSize; +import cgeo.geocaching.enumerations.CacheType; import cgeo.geocaching.enumerations.LogType; import java.util.Date; @@ -12,7 +14,7 @@ import java.util.Map; /** * Basic interface for caches */ -public interface ICache extends IBasicCache { +public interface ICache extends ILogable, ICoordinates { /** * @return Displayed owner, might differ from the real owner @@ -63,7 +65,6 @@ public interface ICache extends IBasicCache { /** * @return Guid */ - @Override public String getGuid(); /** @@ -129,4 +130,35 @@ public interface ICache extends IBasicCache { * @return normalized, cached name which sort also correct for numerical parts in the name */ public String getNameForSorting(); + + /** + * @return Tradi, multi etc. + */ + CacheType getType(); + + /** + * @return Micro, small etc. + */ + CacheSize getSize(); + + /** + * @return true if the user already found the cache + * + */ + boolean isFound(); + + /** + * @return true if the cache is disabled, false else + */ + boolean isDisabled(); + + /** + * @return Difficulty assessment + */ + float getDifficulty(); + + /** + * @return Terrain assessment + */ + float getTerrain(); } |
