java.lang.Object
net.i2p.router.web.helpers.SybilRenderer.FoofComparator
- All Implemented Interfaces:
Serializable, Comparator<String>
- Enclosing class:
SybilRenderer
private static class SybilRenderer.FoofComparatorextends Object implements Comparator<String>, Serializable
Orders names by how many routers share each.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionFoofComparator(Map<String, List<RouterInfo>> o) Orders names by how many routers share each, most 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
_o
The routers, by name._comp
Collator comparing the names.
Constructor Details
FoofComparator
Orders names by how many routers share each, most first.- Parameters:
o- the routers, by name, to compare by
Method Details
compare
Orders two names by shared-router count, then by collation.- Specified by:
comparein interfaceComparator<String>