biz.chitec.quarterback.util
Class LocaleComparator
java.lang.Object
biz.chitec.quarterback.util.LocaleComparator
- All Implemented Interfaces:
- java.util.Comparator
- public class LocaleComparator
- extends java.lang.Object
- implements java.util.Comparator
Compares two Locales according to their languages, countries and variants.
The Comparator follows the singleton design.
- Version:
- $Id: 306fee4e71b7ea0708db7ef5e05536a107e45cf1 $
- Author:
- cantamen/Dirk Hillbrecht 2006. Released under the LGPL.
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 |
instance
private static final LocaleComparator instance
LocaleComparator
private LocaleComparator()
getInstance
public static LocaleComparator getInstance()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator