java.lang.Object
net.i2p.router.web.helpers.SybilRenderer.PointsComparator
- All Implemented Interfaces:
Serializable, Comparator<Hash>
- Enclosing class:
SybilRenderer
private static class SybilRenderer.PointsComparatorextends Object implements Comparator<Hash>, Serializable
Orders router hashes by sybil points.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionPointsComparator(Map<Hash, Points> points) Orders hashes by sybil score, most points first.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
Field Details
_points
Constructor Details
PointsComparator
Method Details
compare
Orders two hashes by their points, highest score first.- Specified by:
comparein interfaceComparator<Hash>