Package org.opencms.i18n
Class CmsLocaleComparator
java.lang.Object
org.opencms.i18n.CmsLocaleComparator
- All Implemented Interfaces:
Serializable
,Comparator<Locale>
Simple comparator implementation for locales, that compares the String value of the locales.
- Since:
- 6.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
static Comparator<Locale>
Returns a static instance of the locale comparator.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
-
Method Details
-
getComparator
Returns a static instance of the locale comparator.- Returns:
- a static instance of the locale comparator
-
compare
- Specified by:
compare
in interfaceComparator<Locale>
- See Also:
-