java.lang.Object
net.i2p.router.web.helpers.UDPSorters.PeerComparator
net.i2p.router.web.helpers.UDPSorters.RateInComparator
All Implemented Interfaces:
Serializable, Comparator<PeerState>
Enclosing class:
UDPSorters

static class UDPSorters.RateInComparatorextends UDPSorters.PeerComparator
Comparator for sorting UDP peers by inbound rate in ascending order.
  • Field Details

    • now

      private final long now
      Time the comparator was made, so rates are read consistently
  • Constructor Details

    • RateInComparator

      RateInComparator()
      Default constructor; snapshots the clock for the bps comparison.
  • Method Details