Package | Description |
---|---|
com.ibm.icu.util |
International calendars and other utility classes.
|
Modifier and Type | Method and Description |
---|---|
LocaleMatcher.Builder |
LocaleMatcher.Builder.addSupportedLocale(Locale locale)
Adds another supported locale.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.addSupportedULocale(ULocale locale)
Adds another supported locale.
|
static LocaleMatcher.Builder |
LocaleMatcher.builder()
Returns a builder used in chaining parameters for building a LocaleMatcher.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.internalSetThresholdDistance(int thresholdDistance)
Deprecated.
This API is ICU internal only.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setDefaultLocale(Locale defaultLocale)
Sets the default locale; if null, or if it is not set explicitly,
then the first supported locale is used as the default locale.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setDefaultULocale(ULocale defaultLocale)
Sets the default locale; if null, or if it is not set explicitly,
then the first supported locale is used as the default locale.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setDemotionPerDesiredLocale(LocaleMatcher.Demotion demotion)
Option for whether all desired locales are treated equally or
earlier ones are preferred (this is the default).
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setDirection(LocaleMatcher.Direction direction)
Option for whether to include or ignore one-way (fallback) match data.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setFavorSubtag(LocaleMatcher.FavorSubtag subtag)
If SCRIPT, then the language differences are smaller than script differences.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setMaxDistance(Locale desired,
Locale supported)
Sets the maximum distance for an acceptable match.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setMaxDistance(ULocale desired,
ULocale supported)
Sets the maximum distance for an acceptable match.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setNoDefaultLocale()
Sets no default locale.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setSupportedLocales(Collection<Locale> locales)
Copies the supported locales, preserving iteration order.
|
LocaleMatcher.Builder |
LocaleMatcher.Builder.setSupportedLocales(String locales)
Parses the string like
LocalePriorityList does and
sets the supported locales accordingly. |
LocaleMatcher.Builder |
LocaleMatcher.Builder.setSupportedULocales(Collection<ULocale> locales)
Copies the supported locales, preserving iteration order.
|
Copyright © 2016 Unicode, Inc. and others.