public boolean contains(final Geocache cache) {
        if (cache == null) {
            return false;
        }
        if (this == ALL) {
            return true;
        }
        return cache.getType() == this;
    }
Whether this type contains the given cache.

@return true if this is the ALL type or if this type equals the type of the cache.
main/src/main/java/cgeo/geocaching/enumerations/CacheType.java