java.lang.Object
net.i2p.router.web.helpers.ProfileOrganizerRenderer.FloodfillRowComparator
- All Implemented Interfaces:
Serializable, Comparator<ProfileOrganizerRenderer.FloodfillRow>
- Enclosing class:
ProfileOrganizerRenderer
private static class ProfileOrganizerRenderer.FloodfillRowComparatorextends Object implements Comparator<ProfileOrganizerRenderer.FloodfillRow>, Serializable
Sorts floodfill rows by 1h fail rate ascending (best first) so the initial render needs no client-side re-sort. Ties keep the binary hash order of the source set.
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateComparator sorting rows by the 1h lookup fail rate, best first.Method Summary
All MethodsModifier and TypeMethodDescriptionintMethods 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
FloodfillRowComparator
private FloodfillRowComparator()Comparator sorting rows by the 1h lookup fail rate, best first.
Method Details
compare
public int compare(ProfileOrganizerRenderer.FloodfillRow left, ProfileOrganizerRenderer.FloodfillRow right) - Specified by:
comparein interfaceComparator<ProfileOrganizerRenderer.FloodfillRow>