Package java.text.spi

Class CollatorProvider


public abstract class CollatorProvider
extends LocaleServiceProvider
This abstract class should be extended by service providers which provide instances of Collator.

Note that Android does not support user-supplied locale service providers.

Since:
1.6
  • Constructor Details

    • CollatorProvider

      protected CollatorProvider()
      Default constructor, for use by subclasses.
  • Method Details

    • getInstance

      public abstract Collator getInstance​(Locale locale)
      Returns an instance of Collator for the given locale.
      Parameters:
      locale - the locale
      Returns:
      an instance of Collator
      Throws:
      NullPointerException - if locale == null
      IllegalArgumentException - if locale isn't one of the locales returned from getAvailableLocales().