java.lang.Object
net.i2p.router.networkdb.PublishLocalRouterInfoJob.AddrComparator
- All Implemented Interfaces:
Serializable, Comparator<RouterAddress>
- Enclosing class:
PublishLocalRouterInfoJob
private static class PublishLocalRouterInfoJob.AddrComparatorextends Object implements Comparator<RouterAddress>, Serializable
Arbitrary sort so we can attempt to compare costs between two RIs to see if they have changed.
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionintCompare two RouterAddresses by transport style, then host.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 RouterAddresses by transport style, then host.- Specified by:
comparein interfaceComparator<RouterAddress>