java.lang.Object
net.i2p.router.web.helpers.SybilRenderer.FooComparator<K>
- Type Parameters:
K- the key type compared
- All Implemented Interfaces:
Serializable, Comparator<K>
- Enclosing class:
SybilRenderer
private static class SybilRenderer.FooComparator<K extends Comparable>extends Object implements Comparator<K>, Serializable
Orders keys by how many routers share each.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionFooComparator(Map<K, List<RouterInfo>> o) Orders keys 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 key.
Constructor Details
FooComparator
Orders keys by how many routers share each, most first.- Parameters:
o- the routers, by key, to compare by
Method Details
compare
Orders two keys by shared-router count, then naturally.- Specified by:
comparein interfaceComparator<K extends Comparable>