com.isogen.i18nsupport.compare
Interface ComparatorFactory

All Known Implementing Classes:
IcuComparatorFactoryImpl

public interface ComparatorFactory

Factory class for creating new Comparator objects. Comparators are a generic abstraction of the Java Collator API that allows different comparator implementations, such as the ICU4J Collator classes.


Method Summary
 java.util.Comparator getComparatorForLocale(java.util.Locale locale)
          Constructs a Comparator for the specified locale.
 

Method Detail

getComparatorForLocale

public java.util.Comparator getComparatorForLocale(java.util.Locale locale)
                                            throws ComparatorException
Constructs a Comparator for the specified locale.

Parameters:
locale - The Locale for which a Comparator is desired.
Returns:
The Comparator for the Locale.
Throws:
ComparatorException