Class CollatorProvider
java.lang.Object
java.util.spi.LocaleServiceProvider
java.text.spi.CollatorProvider
An abstract class for service providers that
provide concrete implementations of the
Collator class.- Since:
- 1.6
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract CollatorgetInstance(Locale locale) Returns a newCollatorinstance for the specified locale.Methods declared in class LocaleServiceProvidergetAvailableLocales, isSupportedLocale
- 
Constructor Details- 
CollatorProviderprotected CollatorProvider()Sole constructor. (For invocation by subclass constructors, typically implicit.)
 
- 
- 
Method Details- 
getInstanceReturns a newCollatorinstance for the specified locale.- Parameters:
- locale- the desired locale.
- Returns:
- the Collatorfor the desired locale.
- Throws:
- NullPointerException- if- localeis null
- IllegalArgumentException- if- localeisn't one of the locales returned from- getAvailableLocales().
- See Also:
 
 
-