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, isSupportedLocalepublic 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.