Package de.aristaflow.adept2.util.i18n
Class LocaleComparator
- java.lang.Object
-
- de.aristaflow.adept2.util.i18n.LocaleComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Locale>
public class LocaleComparator extends Object implements Comparator<Locale>, Serializable
A comparator that can be used to compare locales. This allows for a consistent order within a web service call.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocaleComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Locale l1, Locale l2)
-
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 Detail
-
compare
public int compare(Locale l1, Locale l2)
- Specified by:
compare
in interfaceComparator<Locale>
-
-