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 Details

    • serialVersionUID

      private static final long serialVersionUID
      Pinned for serialized-form compatibility.
      See Also:
    • _us

      private final transient Hash _us
      The destination whose routing key entries are being ordered.
  • Constructor Details

    • LeaseSetRoutingKeyComparator

      public LeaseSetRoutingKeyComparator(Hash us)
      Create a comparator ordering leases by their routing key entry.
      Parameters:
      us - the destination the keys belong to
  • Method Details