blob: 5cf39d7fd635ecf069886f10250069abbfa62ce2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package cgeo.geocaching.sorting;
import cgeo.geocaching.Geocache;
/**
* sorts caches by the users own voting (if available at all)
*/
class VoteComparator extends AbstractCacheComparator {
@Override
protected int compareCaches(final Geocache cache1, final Geocache cache2) {
// if there is no vote available, put that cache at the end of the list
return Float.compare(cache2.getMyVote(), cache1.getMyVote());
}
}
|