java.lang.Object
net.i2p.router.peermanager.SpeedComparator
- All Implemented Interfaces:
Comparator<PeerProfile>
Order profiles by their speed (lowest first).
Constructor Summary
ConstructorsConstructorDescriptionThe comparator reads nothing but the two profiles it is handed, so a bare instance behaves exactly like any other.Method 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
SpeedComparator
SpeedComparator()The comparator reads nothing but the two profiles it is handed, so a bare instance behaves exactly like any other.
Method Details
compare
- Specified by:
comparein interfaceComparator<PeerProfile>