public void setType(final CacheType cacheType) {
        if (cacheType == null || cacheType == CacheType.ALL) {
            throw new IllegalArgumentException("Illegal cache type");
        }
        this.cacheType = cacheType;
        this.eventTimesInMin.reset(); // will be recalculated if/when necessary
    }
@return only the logs of friends
main/src/main/java/cgeo/geocaching/models/Geocache.java