java.lang.Object
net.i2p.router.web.helpers.ProfileOrganizerRenderer.ProfComparator
net.i2p.router.web.helpers.ProfileOrganizerRenderer.ProfileComparator
- All Implemented Interfaces:
Serializable, Comparator<PeerProfile>
- Enclosing class:
ProfileOrganizerRenderer
private static class ProfileOrganizerRenderer.ProfileComparatorextends ProfileOrganizerRenderer.ProfComparator
Sorts profiles by tier (fast > high-cap > standard) using pre-computed tier sets, then by binary hash order within each tier. No locks are acquired during comparison. The tier snapshot is taken once in loadProfiles() and passed to this comparator.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionProfileComparator(Set<Hash> fastSet, Set<Hash> highCapSet) Orders the profiles for the page.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
_fastSet
_highCapSet
Constructor Details
ProfileComparator
Method Details
compare
- Specified by:
comparein interfaceComparator<PeerProfile>- Overrides:
comparein classProfileOrganizerRenderer.ProfComparator