java.lang.Object
net.i2p.router.web.helpers.SidebarHelper.AlphaComparator
- All Implemented Interfaces:
Comparator<Destination>
- Enclosing class:
SidebarHelper
Compare translated nicknames - put "shared clients" first in the sort Inner class, can't be Serializable.
Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionintcompare(Destination lhs, Destination rhs) Orders two clients by type (HostChecker, chat, snark, server, client, ping), falling back to a locale-aware name collation.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Field Details
snark
Translated name of the torrent app.
Constructor Details
AlphaComparator
private AlphaComparator()Orders the sidebar's destinations by name.
Method Details
compare
Orders two clients by type (HostChecker, chat, snark, server, client, ping), falling back to a locale-aware name collation.- Specified by:
comparein interfaceComparator<Destination>