java.lang.Object
net.i2p.router.web.helpers.NetDbComparators.CountryComparator
- All Implemented Interfaces:
Comparator<String>
- Enclosing class:
NetDbComparators
Comparator for countries by translated name.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RouterContextThe router context used to read the display language.private final CollatorLocale-sensitive collator, so country names sort in the user's language.Constructor Summary
ConstructorsConstructorDescriptionCreate a comparator ordering country names in the console's language.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 read the display language.coll
Locale-sensitive collator, so country names sort in the user's language.
Constructor Details
CountryComparator
Create a comparator ordering country names in the console's language.- Parameters:
ctx- the router context
Method Details
compare
- Specified by:
comparein interfaceComparator<String>
translated