java.lang.Object
net.i2p.router.web.helpers.UDPSorters.PeerComparator
net.i2p.router.web.helpers.UDPSorters.IdleOutComparator
- All Implemented Interfaces:
Serializable, Comparator<PeerState>
- Enclosing class:
UDPSorters
Comparator for sorting UDP peers by outbound idle time in ascending order.
Constructor Summary
ConstructorsMethod Summary
All MethodsMethods 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
IdleOutComparator
IdleOutComparator()Default constructor; no state beyond the superclass.
Method Details
compare
Orders peers by idle time since the last outbound message.- Specified by:
comparein interfaceComparator<PeerState>- Overrides:
comparein classUDPSorters.PeerComparator