diff options
Diffstat (limited to 'src/cgeo/geocaching/enumerations')
| -rw-r--r-- | src/cgeo/geocaching/enumerations/CacheSize.java | 74 | ||||
| -rw-r--r-- | src/cgeo/geocaching/enumerations/CacheType.java | 104 | ||||
| -rw-r--r-- | src/cgeo/geocaching/enumerations/WaypointType.java | 72 |
3 files changed, 125 insertions, 125 deletions
diff --git a/src/cgeo/geocaching/enumerations/CacheSize.java b/src/cgeo/geocaching/enumerations/CacheSize.java index 901be9e..9ea82bb 100644 --- a/src/cgeo/geocaching/enumerations/CacheSize.java +++ b/src/cgeo/geocaching/enumerations/CacheSize.java @@ -1,37 +1,37 @@ -package cgeo.geocaching.enumerations;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Enum listing cache sizes
- *
- * @author koem
- */
-public enum CacheSize {
- MICRO("micro", 1),
- SMALL("small", 2),
- REGULAR("regular", 3),
- LARGE("large", 4),
- NOT_CHOSEN("not chosen", 0),
- OTHER("other", 0);
-
- public final String cgeoId;
- public final int comparable;
-
- private CacheSize(String cgeoId, int comparable) {
- this.cgeoId = cgeoId;
- this.comparable = comparable;
- }
-
- final public static Map<String, CacheSize> FIND_BY_CGEOID;
- static {
- final HashMap<String, CacheSize> mapping = new HashMap<String, CacheSize>();
- for (CacheSize cs : values()) {
- mapping.put(cs.cgeoId, cs);
- }
- FIND_BY_CGEOID = Collections.unmodifiableMap(mapping);
- }
-
-}
+package cgeo.geocaching.enumerations; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * Enum listing cache sizes + * + * @author koem + */ +public enum CacheSize { + MICRO("micro", 1), + SMALL("small", 2), + REGULAR("regular", 3), + LARGE("large", 4), + NOT_CHOSEN("not chosen", 0), + OTHER("other", 0); + + public final String cgeoId; + public final int comparable; + + private CacheSize(String cgeoId, int comparable) { + this.cgeoId = cgeoId; + this.comparable = comparable; + } + + final public static Map<String, CacheSize> FIND_BY_CGEOID; + static { + final HashMap<String, CacheSize> mapping = new HashMap<String, CacheSize>(); + for (CacheSize cs : values()) { + mapping.put(cs.cgeoId, cs); + } + FIND_BY_CGEOID = Collections.unmodifiableMap(mapping); + } + +} diff --git a/src/cgeo/geocaching/enumerations/CacheType.java b/src/cgeo/geocaching/enumerations/CacheType.java index f30afc9..6acc3a4 100644 --- a/src/cgeo/geocaching/enumerations/CacheType.java +++ b/src/cgeo/geocaching/enumerations/CacheType.java @@ -1,52 +1,52 @@ -package cgeo.geocaching.enumerations;
-
-import cgeo.geocaching.R;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Enum listing all cache types
- *
- * @author koem
- */
-public enum CacheType {
- TRADITIONAL ("traditional", "traditional cache", "32bc9333-5e52-4957-b0f6-5a2c8fc7b257", R.string.traditional),
- MULTI ("multi", "multi-cache", "a5f6d0ad-d2f2-4011-8c14-940a9ebf3c74", R.string.multi),
- MYSTERY ("mystery", "unknown cache", "40861821-1835-4e11-b666-8d41064d03fe", R.string.mystery),
- LETTERBOX ("letterbox", "letterbox hybrid", "4bdd8fb2-d7bc-453f-a9c5-968563b15d24", R.string.letterbox),
- EVENT ("event", "event cache", "69eb8534-b718-4b35-ae3c-a856a55b0874", R.string.event),
- MEGA_EVENT ("mega", "mega-event cache", "69eb8535-b718-4b35-ae3c-a856a55b0874", R.string.mega),
- EARTH ("earth", "earthcache", "c66f5cf3-9523-4549-b8dd-759cd2f18db8", R.string.earth),
- CITO ("cito", "cache in trash out event", "57150806-bc1a-42d6-9cf0-538d171a2d22", R.string.cito),
- WEBCAM ("webcam", "webcam cache", "31d2ae3c-c358-4b5f-8dcd-2185bf472d3d", R.string.webcam),
- VIRTUAL ("virtual", "virtual cache", "294d4360-ac86-4c83-84dd-8113ef678d7e", R.string.virtual),
- WHERIGO ("wherigo", "wherigo cache", "0544fa55-772d-4e5c-96a9-36a51ebcf5c9", R.string.wherigo),
- LOSTANDFOUND ("lostfound", "lost & found", "3ea6533d-bb52-42fe-b2d2-79a3424d4728", R.string.lostfound),
- PROJECT_APE ("ape", "project ape cache", "2555690d-b2bc-4b55-b5ac-0cb704c0b768", R.string.ape),
- GCHQ ("gchq", "groundspeak hq", "416f2494-dc17-4b6a-9bab-1a29dd292d8c", R.string.gchq),
- GPS_EXHIBIT ("gps", "gps cache exhibit", "72e69af2-7986-4990-afd9-bc16cbbb4ce3", R.string.gps);
-
- public final String cgeoId;
- public final String pattern;
- public final String guid;
- public final int stringId;
-
- private CacheType(String cgeoId, String pattern, String guid, int stringId) {
- this.cgeoId = cgeoId;
- this.pattern = pattern;
- this.guid = guid;
- this.stringId = stringId;
- }
-
- public final static Map<String, CacheType> FIND_BY_CGEOID;
- static {
- final HashMap<String, CacheType> mapping = new HashMap<String, CacheType>();
- for (CacheType ct : values()) {
- mapping.put(ct.cgeoId, ct);
- }
- FIND_BY_CGEOID = Collections.unmodifiableMap(mapping);
- }
-
-}
+package cgeo.geocaching.enumerations; + +import cgeo.geocaching.R; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * Enum listing all cache types + * + * @author koem + */ +public enum CacheType { + TRADITIONAL ("traditional", "traditional cache", "32bc9333-5e52-4957-b0f6-5a2c8fc7b257", R.string.traditional), + MULTI ("multi", "multi-cache", "a5f6d0ad-d2f2-4011-8c14-940a9ebf3c74", R.string.multi), + MYSTERY ("mystery", "unknown cache", "40861821-1835-4e11-b666-8d41064d03fe", R.string.mystery), + LETTERBOX ("letterbox", "letterbox hybrid", "4bdd8fb2-d7bc-453f-a9c5-968563b15d24", R.string.letterbox), + EVENT ("event", "event cache", "69eb8534-b718-4b35-ae3c-a856a55b0874", R.string.event), + MEGA_EVENT ("mega", "mega-event cache", "69eb8535-b718-4b35-ae3c-a856a55b0874", R.string.mega), + EARTH ("earth", "earthcache", "c66f5cf3-9523-4549-b8dd-759cd2f18db8", R.string.earth), + CITO ("cito", "cache in trash out event", "57150806-bc1a-42d6-9cf0-538d171a2d22", R.string.cito), + WEBCAM ("webcam", "webcam cache", "31d2ae3c-c358-4b5f-8dcd-2185bf472d3d", R.string.webcam), + VIRTUAL ("virtual", "virtual cache", "294d4360-ac86-4c83-84dd-8113ef678d7e", R.string.virtual), + WHERIGO ("wherigo", "wherigo cache", "0544fa55-772d-4e5c-96a9-36a51ebcf5c9", R.string.wherigo), + LOSTANDFOUND ("lostfound", "lost & found", "3ea6533d-bb52-42fe-b2d2-79a3424d4728", R.string.lostfound), + PROJECT_APE ("ape", "project ape cache", "2555690d-b2bc-4b55-b5ac-0cb704c0b768", R.string.ape), + GCHQ ("gchq", "groundspeak hq", "416f2494-dc17-4b6a-9bab-1a29dd292d8c", R.string.gchq), + GPS_EXHIBIT ("gps", "gps cache exhibit", "72e69af2-7986-4990-afd9-bc16cbbb4ce3", R.string.gps); + + public final String cgeoId; + public final String pattern; + public final String guid; + public final int stringId; + + private CacheType(String cgeoId, String pattern, String guid, int stringId) { + this.cgeoId = cgeoId; + this.pattern = pattern; + this.guid = guid; + this.stringId = stringId; + } + + public final static Map<String, CacheType> FIND_BY_CGEOID; + static { + final HashMap<String, CacheType> mapping = new HashMap<String, CacheType>(); + for (CacheType ct : values()) { + mapping.put(ct.cgeoId, ct); + } + FIND_BY_CGEOID = Collections.unmodifiableMap(mapping); + } + +} diff --git a/src/cgeo/geocaching/enumerations/WaypointType.java b/src/cgeo/geocaching/enumerations/WaypointType.java index cd4b31c..84ef59a 100644 --- a/src/cgeo/geocaching/enumerations/WaypointType.java +++ b/src/cgeo/geocaching/enumerations/WaypointType.java @@ -1,36 +1,36 @@ -package cgeo.geocaching.enumerations;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Enum listing waypoint types
- *
- * @author koem
- */
-public enum WaypointType {
- FLAG ("flag"),
- OWN ("own"),
- PKG ("pkg"),
- PUZZLE ("puzzle"),
- STAGE ("stage"),
- TRAILHEAD ("trailhead"),
- WAYPOINT ("waypoint");
-
- public final String cgeoId;
-
- private WaypointType(String cgeoId) {
- this.cgeoId = cgeoId;
- }
-
- public static final Map<String, WaypointType> FIND_BY_CGEOID;
- static {
- final HashMap<String, WaypointType> mapping = new HashMap<String, WaypointType>();
- for (WaypointType wt : values()) {
- mapping.put(wt.cgeoId, wt);
- }
- FIND_BY_CGEOID = Collections.unmodifiableMap(mapping);
- }
-
-}
+package cgeo.geocaching.enumerations; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * Enum listing waypoint types + * + * @author koem + */ +public enum WaypointType { + FLAG ("flag"), + OWN ("own"), + PKG ("pkg"), + PUZZLE ("puzzle"), + STAGE ("stage"), + TRAILHEAD ("trailhead"), + WAYPOINT ("waypoint"); + + public final String cgeoId; + + private WaypointType(String cgeoId) { + this.cgeoId = cgeoId; + } + + public static final Map<String, WaypointType> FIND_BY_CGEOID; + static { + final HashMap<String, WaypointType> mapping = new HashMap<String, WaypointType>(); + for (WaypointType wt : values()) { + mapping.put(wt.cgeoId, wt); + } + FIND_BY_CGEOID = Collections.unmodifiableMap(mapping); + } + +} |
