diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-11-23 17:19:18 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-11-23 17:22:43 +0100 |
| commit | 5ba497ef1487c76f4673fd9a7f3c62512b8cef6f (patch) | |
| tree | bd12d4ad36075b5d47747063c84e0937143811b4 /main/src/cgeo/geocaching/sorting/NameComparator.java | |
| parent | 121d4285d747ce2ec707ad3cb7a9166833699fb6 (diff) | |
| download | cgeo-5ba497ef1487c76f4673fd9a7f3c62512b8cef6f.zip cgeo-5ba497ef1487c76f4673fd9a7f3c62512b8cef6f.tar.gz cgeo-5ba497ef1487c76f4673fd9a7f3c62512b8cef6f.tar.bz2 | |
reduce visibility
All changes done with UCDetector. This can help in seeing which packages
are not yet self contained (e.g. all the remaining public constants in
GCConstants).
Diffstat (limited to 'main/src/cgeo/geocaching/sorting/NameComparator.java')
| -rw-r--r-- | main/src/cgeo/geocaching/sorting/NameComparator.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/sorting/NameComparator.java b/main/src/cgeo/geocaching/sorting/NameComparator.java index 2941b1c..376c8b9 100644 --- a/main/src/cgeo/geocaching/sorting/NameComparator.java +++ b/main/src/cgeo/geocaching/sorting/NameComparator.java @@ -8,15 +8,15 @@ import org.apache.commons.lang3.StringUtils; * sorts caches by name * */ -public class NameComparator extends AbstractCacheComparator { +class NameComparator extends AbstractCacheComparator { @Override - protected boolean canCompare(Geocache cache) { + protected boolean canCompare(final Geocache cache) { return StringUtils.isNotBlank(cache.getName()); } @Override - protected int compareCaches(Geocache cache1, Geocache cache2) { + protected int compareCaches(final Geocache cache1, final Geocache cache2) { return cache1.getNameForSorting().compareToIgnoreCase(cache2.getNameForSorting()); } } |
