blob: 60c25ad532695ff9b57a3e91a1ba0f5b39755b1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package cgeo.geocaching.sorting;
import cgeo.geocaching.Geocache;
import org.apache.commons.lang3.StringUtils;
/**
* sorts caches by geo code, therefore effectively sorting by cache age
*
*/
public class GeocodeComparator extends AbstractCacheComparator {
@Override
protected boolean canCompare(final Geocache cache) {
// This will fallback to geocode comparisons.
return false;
}
@Override
protected int compareCaches(final Geocache cache1, final Geocache cache2) {
throw new RuntimeException("should never be called");
}
}
|