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
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
compare
public int compare(PeerProfile left, PeerProfile right)
- Specified by:
compare
in interfaceComparator<PeerProfile>
-
-