예제 #1
0
파일: GCVote.java 프로젝트: devykm/cgeo
 /**
  * Get geocodes of all the caches, which can be used with GCVote. Non-GC caches will be filtered
  * out.
  *
  * @param caches
  * @return
  */
 private static @NonNull ArrayList<String> getVotableGeocodes(
     final @NonNull Collection<Geocache> caches) {
   final ArrayList<String> geocodes = new ArrayList<>(caches.size());
   for (final Geocache cache : caches) {
     String geocode = cache.getGeocode();
     if (StringUtils.isNotBlank(geocode) && cache.supportsGCVote()) {
       geocodes.add(geocode);
     }
   }
   return geocodes;
 }
예제 #2
0
파일: GCVote.java 프로젝트: devykm/cgeo
 public static boolean isVotingPossible(final Geocache cache) {
   return Settings.isGCvoteLogin()
       && StringUtils.isNotBlank(cache.getGuid())
       && cache.supportsGCVote();
 }