aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/Geocache.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
-rw-r--r--main/src/cgeo/geocaching/Geocache.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index 222bb44..1fb1e0c 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -33,6 +33,7 @@ import cgeo.geocaching.utils.MatcherWrapper;
import cgeo.geocaching.utils.UncertainProperty;
import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.Predicate;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
@@ -1747,6 +1748,13 @@ public class Geocache implements ICache, IWaypoint {
return StaticMapsProvider.hasStaticMap(this);
}
+ public static Predicate<Geocache> hasStaticMap = new Predicate<Geocache>() {
+ @Override
+ public boolean evaluate(final Geocache cache) {
+ return cache.hasStaticMap();
+ }
+ };
+
public List<Image> getImages() {
final List<Image> result = new ArrayList<Image>();
result.addAll(getSpoilers());