java.lang.Object
net.i2p.router.web.helpers.NetDbComparators.LeaseSetComparator
- All Implemented Interfaces:
Comparator<LeaseSet>
- Enclosing class:
NetDbComparators
Comparator for LeaseSets, used in the leaseset listing. Prioritizes published, nicknamed, named, client, and meta leasesets.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RouterContextThe router context used to look up lease and country data.Constructor Summary
ConstructorsConstructorDescriptionCreate a comparator for the console's leaseset listing.Method Summary
Methods 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
_context
The router context used to look up lease and country data.
Constructor Details
LeaseSetComparator
Create a comparator for the console's leaseset listing.- Parameters:
ctx- the router context
Method Details
compare
- Specified by:
comparein interfaceComparator<LeaseSet>