|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.meshcms.util.LocaleComparator
Compares locales to sort them according to their display name.
Constructor Summary | |
LocaleComparator()
Creates a new instance using the system default locale to get display names. |
|
LocaleComparator(java.util.Locale locale)
Creates a new instance using the given locale to get display names. |
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two locales. |
java.util.Locale |
getLocale()
Returns the locale used to get the display names. |
void |
setLocale(java.util.Locale locale)
Sets the locale used to get the display names, so one can sort the locales according to a specific 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 |
Constructor Detail |
public LocaleComparator()
public LocaleComparator(java.util.Locale locale)
Method Detail |
public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |