java.lang.Object
net.i2p.router.web.helpers.TunnelRenderer.TPComparator
- All Implemented Interfaces:
Comparator<TunnelPool>
- Enclosing class:
TunnelRenderer
Sort tunnels by the name of the tunnel.
Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionintcompare(TunnelPool l, TunnelPool r) Order pools by locale-collated display name, falling back to the destination base32 and then to the next expiration.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
_comp
Collator comparing the peer names.
Constructor Details
TPComparator
private TPComparator()Orders tunnel pools by name.
Method Details
compare
Order pools by locale-collated display name, falling back to the destination base32 and then to the next expiration.- Specified by:
comparein interfaceComparator<TunnelPool>