@API(value=EXPERIMENTAL) public class TextCollatorRegistryJRE extends Object implements TextCollatorRegistry
Collator
implementation.Modifier and Type | Class and Description |
---|---|
protected static class |
TextCollatorRegistryJRE.TextCollatorJRE |
Modifier and Type | Field and Description |
---|---|
static TextCollatorRegistryJRE |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
TextCollator |
getTextCollator(int strength)
Get a text collator of the specified strength for the default locale.
|
TextCollator |
getTextCollator(String locale,
int strength)
Get a text collator of the specified strength for the given locale.
|
static TextCollatorRegistry |
instance()
Get the singleton instance of this registry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTextCollator, getTextCollator
public static final TextCollatorRegistryJRE INSTANCE
public static TextCollatorRegistry instance()
@Nonnull public TextCollator getTextCollator(int strength)
TextCollatorRegistry
getTextCollator
in interface TextCollatorRegistry
strength
- the desired strength@Nonnull public TextCollator getTextCollator(@Nonnull String locale, int strength)
TextCollatorRegistry
getTextCollator
in interface TextCollatorRegistry
locale
- the name of the target localestrength
- the desired strength