public abstract class CollatorProvider extends LocaleServiceProvider
Modifier | Constructor and Description |
---|---|
protected |
CollatorProvider()
唯一的构造函数。
|
Modifier and Type | Method and Description |
---|---|
abstract Collator |
getInstance(Locale locale)
返回指定区域设置的新的
Collator 实例。
|
getAvailableLocales, isSupportedLocale
public abstract Collator getInstance(Locale locale)
Collator
实例。
locale
- 所需的语言环境。
Collator
为所需的语言环境。
NullPointerException
- 如果
locale
为空
IllegalArgumentException
- 如果
locale
不是从
getAvailableLocales()
返回的区域设置之一。
Collator.getInstance(java.util.Locale)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.