java.lang.Object
net.i2p.router.web.helpers.NetDbComparators.LeaseSetRoutingKeyComparator
- All Implemented Interfaces:
Serializable, Comparator<LeaseSet>
- Enclosing class:
NetDbComparators
static class NetDbComparators.LeaseSetRoutingKeyComparatorextends Object implements Comparator<LeaseSet>, Serializable
Comparator for LeaseSets sorted by hash distance from local router. Used in debug/floodfill mode.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashThe destination whose routing key entries are being ordered.private static final longPinned for serialized-form compatibility.Constructor Summary
ConstructorsConstructorDescriptionCreate a comparator ordering leases by their routing key entry.Method Summary
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
serialVersionUID
private static final long serialVersionUIDPinned for serialized-form compatibility.- See Also:
_us
The destination whose routing key entries are being ordered.
Constructor Details
LeaseSetRoutingKeyComparator
Create a comparator ordering leases by their routing key entry.- Parameters:
us- the destination the keys belong to
Method Details
compare
- Specified by:
comparein interfaceComparator<LeaseSet>