com.atlassian.crowd.openid.server.util
Class LocalComparator
java.lang.Object
com.atlassian.crowd.openid.server.util.LocalComparator
- All Implemented Interfaces:
- java.util.Comparator
public class LocalComparator
- extends java.lang.Object
- implements java.util.Comparator
Compares two Locales based on their displayLanguage
or their displayCountry. Useful for alphabetically
sorting a list of Locales.
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 |
DISPLAY_LANGUAGE
public static final int DISPLAY_LANGUAGE
- See Also:
- Constant Field Values
DISPLAY_COUNTRY
public static final int DISPLAY_COUNTRY
- See Also:
- Constant Field Values
LocalComparator
public LocalComparator()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator
getComparatorField
public int getComparatorField()
setComparatorField
public void setComparatorField(int comparatorField)
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.