Package net.i2p.router.peermanager
Class SpeedComparator
java.lang.Object
net.i2p.router.peermanager.SpeedComparator
- All Implemented Interfaces:
Serializable
,Comparator<PeerProfile>
class SpeedComparator extends Object implements Comparator<PeerProfile>, Serializable
Order profiles by their speed (lowest first).
- Since:
- 0.7.10
-
Constructor Summary
Constructors Constructor Description SpeedComparator()
-
Method Summary
Modifier and Type Method Description int
compare(PeerProfile left, PeerProfile right)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SpeedComparator
SpeedComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<PeerProfile>
-