public abstract class CollatorProvider extends LocaleServiceProvider
Collator
class.Modifier | Constructor | Description |
---|---|---|
protected |
Sole constructor. |
Modifier and Type | Method | Description |
---|---|---|
abstract Collator |
getInstance |
Returns a new Collator instance for the specified locale. |
getAvailableLocales, isSupportedLocale
protected CollatorProvider()
public abstract Collator getInstance(Locale locale)
Collator
instance for the specified locale.locale
- the desired locale.Collator
for the desired locale.NullPointerException
- if locale
is nullIllegalArgumentException
- if locale
isn't one of the locales returned from getAvailableLocales()
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/text/spi/CollatorProvider.html