blob: 13eadccbe313185b10cc9e15d1ca56ebbe7c59bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package cgeo.geocaching.sorting;
import cgeo.geocaching.Geocache;
/**
* sorts caches by number of items in inventory
*/
class InventoryComparator extends AbstractCacheComparator {
@Override
protected int compareCaches(final Geocache cache1, final Geocache cache2) {
return cache2.getInventoryItems() - cache1.getInventoryItems();
}
}
|