net.i2p.router.peermanager
Class SpeedComparator

java.lang.Object
  extended by net.i2p.router.peermanager.SpeedComparator
All Implemented Interfaces:
java.util.Comparator<PeerProfile>

 class SpeedComparator
extends java.lang.Object
implements java.util.Comparator<PeerProfile>

Order profiles by their speed (lowest first).

Since:
0.7.10

Constructor Summary
SpeedComparator()
           
 
Method Summary
 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
 

Constructor Detail

SpeedComparator

SpeedComparator()
Method Detail

compare

public int compare(PeerProfile left,
                   PeerProfile right)
Specified by:
compare in interface java.util.Comparator<PeerProfile>