Class LanguageComparator
java.lang.Object
org.languagetool.gui.LanguageComparator
- All Implemented Interfaces:
Comparator<org.languagetool.Language>
Comparator class for sorting Language by locale name
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.languagetool.Language o1, org.languagetool.Language o2) private StringgetTranslatedName(org.languagetool.Language language) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
messages
-
extLangSuffix
-
-
Constructor Details
-
LanguageComparator
LanguageComparator(ResourceBundle messages, String extLangSuffix)
-
-
Method Details
-
compare
public int compare(org.languagetool.Language o1, org.languagetool.Language o2) - Specified by:
comparein interfaceComparator<org.languagetool.Language>
-
getTranslatedName
-