diff options
| author | Karsten Priegnitz <koem@petoria.de> | 2011-09-12 14:13:20 +0200 |
|---|---|---|
| committer | Karsten Priegnitz <koem@petoria.de> | 2011-09-12 14:13:20 +0200 |
| commit | 6792a4a775f38d633aa1e9fb28cc3283cd23fcba (patch) | |
| tree | ff100c99da6ed24da0dc47b363ac1551f7d6c4cf /src/cgeo/geocaching/enumerations/CacheSize.java | |
| parent | ac21e4d660dcdff30e99c7073a9164a3128a298a (diff) | |
| download | cgeo-6792a4a775f38d633aa1e9fb28cc3283cd23fcba.zip cgeo-6792a4a775f38d633aa1e9fb28cc3283cd23fcba.tar.gz cgeo-6792a4a775f38d633aa1e9fb28cc3283cd23fcba.tar.bz2 | |
locus API as jar
Diffstat (limited to 'src/cgeo/geocaching/enumerations/CacheSize.java')
| -rwxr-xr-x | src/cgeo/geocaching/enumerations/CacheSize.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/enumerations/CacheSize.java b/src/cgeo/geocaching/enumerations/CacheSize.java index b6b9d34..1d0577d 100755 --- a/src/cgeo/geocaching/enumerations/CacheSize.java +++ b/src/cgeo/geocaching/enumerations/CacheSize.java @@ -24,4 +24,13 @@ public enum CacheSize { this.comparable = comparable;
this.locusId = locusId;
}
+
+ public static CacheSize findByCgeoId(String cgeoId) {
+ if (cgeoId == null) return null;
+ for (CacheSize cs : CacheSize.values()) {
+ if (cs.cgeoId.equals(cgeoId)) return cs;
+ }
+ return null;
+ }
+
}
|
