@API(value=EXPERIMENTAL) public interface TextCollatorRegistry
TextCollator
s.
The registry maps locale name and strength to a thread-safe instance.Modifier and Type | Method and Description |
---|---|
default TextCollator |
getTextCollator()
Get a weak text collator for the default locale.
|
TextCollator |
getTextCollator(int strength)
Get a text collator of the specified strength for the default locale.
|
default TextCollator |
getTextCollator(String locale)
Get a weak text collator for the given locale.
|
TextCollator |
getTextCollator(String locale,
int strength)
Get a text collator of the specified strength for the given locale.
|
@Nonnull default TextCollator getTextCollator()
@Nonnull TextCollator getTextCollator(int strength)
strength
- the desired strength@Nonnull default TextCollator getTextCollator(@Nonnull String locale)
locale
- the name of the target locale@Nonnull TextCollator getTextCollator(@Nonnull String locale, int strength)
locale
- the name of the target localestrength
- the desired strength