QJCC homepage

biz.chitec.quarterback.util
Class LocaleComparator

java.lang.Object
  extended bybiz.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.

Field Summary
private static LocaleComparator instance
           
 
Constructor Summary
private LocaleComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
static LocaleComparator getInstance()
           
 
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
 

Field Detail

instance

private static final LocaleComparator instance
Constructor Detail

LocaleComparator

private LocaleComparator()
Method Detail

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

QJCC homepage