aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/enumerations/CacheSize.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-05-12 07:03:00 +0200
committerBananeweizen <bananeweizen@gmx.de>2012-05-12 07:03:00 +0200
commite4978ecfbdd755d585470cc963141e65966fe433 (patch)
tree870bc1163da4dd114354496c599d023452db4469 /main/src/cgeo/geocaching/enumerations/CacheSize.java
parent23ba555e3a21c50285ba28638fef2edcaf7c33f9 (diff)
downloadcgeo-e4978ecfbdd755d585470cc963141e65966fe433.zip
cgeo-e4978ecfbdd755d585470cc963141e65966fe433.tar.gz
cgeo-e4978ecfbdd755d585470cc963141e65966fe433.tar.bz2
use title capitalization in exported type and size
Diffstat (limited to 'main/src/cgeo/geocaching/enumerations/CacheSize.java')
-rw-r--r--main/src/cgeo/geocaching/enumerations/CacheSize.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/CacheSize.java b/main/src/cgeo/geocaching/enumerations/CacheSize.java
index 6fffcdb..0c0be3f 100644
--- a/main/src/cgeo/geocaching/enumerations/CacheSize.java
+++ b/main/src/cgeo/geocaching/enumerations/CacheSize.java
@@ -13,14 +13,14 @@ import java.util.Map;
* @author koem
*/
public enum CacheSize {
- MICRO("micro", 1, R.string.cache_size_micro),
- SMALL("small", 2, R.string.cache_size_small),
- REGULAR("regular", 3, R.string.cache_size_regular),
- LARGE("large", 4, R.string.cache_size_large),
- VIRTUAL("virtual", 0, R.string.cache_size_virtual),
- NOT_CHOSEN("not chosen", 0, R.string.cache_size_notchosen),
- OTHER("other", 0, R.string.cache_size_other),
- UNKNOWN("unknown", 0, R.string.cache_size_unknown); // CacheSize not init. yet
+ MICRO("Micro", 1, R.string.cache_size_micro),
+ SMALL("Small", 2, R.string.cache_size_small),
+ REGULAR("Regular", 3, R.string.cache_size_regular),
+ LARGE("Large", 4, R.string.cache_size_large),
+ VIRTUAL("Virtual", 0, R.string.cache_size_virtual),
+ NOT_CHOSEN("Not chosen", 0, R.string.cache_size_notchosen),
+ OTHER("Other", 0, R.string.cache_size_other),
+ UNKNOWN("Unknown", 0, R.string.cache_size_unknown); // CacheSize not init. yet
public final String id;
public final int comparable;
@@ -36,7 +36,7 @@ public enum CacheSize {
static {
final HashMap<String, CacheSize> mapping = new HashMap<String, CacheSize>();
for (CacheSize cs : values()) {
- mapping.put(cs.id, cs);
+ mapping.put(cs.id.toLowerCase(), cs);
}
FIND_BY_ID = Collections.unmodifiableMap(mapping);
}