Package org.languagetool.gui
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 TypeMethodDescriptionint
compare
(org.languagetool.Language o1, org.languagetool.Language o2) private String
getTranslatedName
(org.languagetool.Language language) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.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:
compare
in interfaceComparator<org.languagetool.Language>
-
getTranslatedName
-