public abstract class

CollatorProvider

extends LocaleServiceProvider
java.lang.Object
   ↳ java.util.spi.LocaleServiceProvider
     ↳ java.text.spi.CollatorProvider

Class Overview

An abstract class for service providers that provide concrete implementations of the Collator class.

Summary

Protected Constructors
CollatorProvider()
Sole constructor.
Public Methods
abstract Collator getInstance(Locale locale)
Returns a new Collator instance for the specified locale.
[Expand]
Inherited Methods
From class java.util.spi.LocaleServiceProvider
From class java.lang.Object

Protected Constructors

protected CollatorProvider ()

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Public Methods

public abstract Collator getInstance (Locale locale)

Returns a new Collator instance for the specified locale.

Parameters
locale the desired locale.
Returns
  • the Collator for the desired locale.
Throws
NullPointerException if locale is null
IllegalArgumentException if locale isn't one of the locales returned from getAvailableLocales().