java.lang.Object
net.i2p.router.transport.CommSystemFacadeImpl.AddrComparator
- All Implemented Interfaces:
Serializable, Comparator<RouterAddress>
- Enclosing class:
CommSystemFacadeImpl
private static class CommSystemFacadeImpl.AddrComparatorextends Object implements Comparator<RouterAddress>, Serializable
Arbitrary sort for consistency. Note that the console UI has its own sorter.
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionintCompare two router addresses for consistent ordering.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
Constructor Details
AddrComparator
private AddrComparator()Orders router addresses by transport.
Method Details
compare
Compare two router addresses for consistent ordering.- Specified by:
comparein interfaceComparator<RouterAddress>