Uses of Class
com.ibm.icu.util.ULocale
Packages that use ULocale
Package
Description
-
Uses of ULocale in com.ibm.icu.impl
Fields in com.ibm.icu.impl declared as ULocaleModifier and TypeFieldDescriptionprivate final ULocaleTimeZoneGenericNames._localeprivate ULocaleTZDBTimeZoneNames._localeprivate ULocaleICULocaleService.fallbackLocale(package private) ULocaleRelativeDateFormat.fLocale(package private) final ULocaleICUCurrencyDisplayInfoProvider.ICUCurrencyDisplayInfo.localeprivate final ULocaleICUService.LocaleRef.localeprivate ULocaleLocaleDisplayNamesImpl.Cache.localeprivate final ULocaleLocaleDisplayNamesImpl.locale(package private) ULocaleICUResourceBundle.WholeBundle.ulocaleFields in com.ibm.icu.impl with type parameters of type ULocaleModifier and TypeFieldDescriptionprivate static SimpleCache<ULocale, char[]> DateNumberFormat.CACHEPluralRulesLoader.rulesIdToEquivalentULocaleMethods in com.ibm.icu.impl that return ULocaleModifier and TypeMethodDescriptionICULocaleService.LocaleKey.canonicalLocale()Convenience method to return the locale corresponding to the (canonical) original ID.ICULocaleService.LocaleKey.currentLocale()Convenience method to return the ulocale corresponding to the (canonical) currentID.ULocale[]ICULocaleService.getAvailableULocales()Convenience method for callers using locales.static final ULocale[]ICUResourceBundle.getAvailableULocales()Get the set of ULocales installed the base bundle.static final ULocale[]ICUResourceBundle.getAvailableULocales(ULocale.AvailableType type) Get the set of ULocales installed the base bundle, for the specified type.static final ULocale[]ICUResourceBundle.getAvailableULocales(String baseName, ClassLoader loader) Get the set of Locales installed in the specified bundles.static final ULocale[]ICUResourceBundle.getAvailableULocales(String baseName, ClassLoader loader, ULocale.AvailableType type) Get the set of Locales installed in the specified bundles, for the specified type.ULocale[]PluralRulesLoader.getAvailableULocales()Returns the locales for which we have plurals data.static final ULocaleICUResourceBundle.getFunctionalEquivalent(String baseName, ClassLoader loader, String resName, String keyword, ULocale locID, boolean[] isAvailable, boolean omitDefault) Returns a functionally equivalent locale, considering keywords as well, for the specified keyword.PluralRulesLoader.getFunctionalEquivalent(ULocale locale, boolean[] isAvailable) Returns the functionally equivalent locale.(package private) ULocaleLocaleDisplayNamesImpl.DataTable.getLocale()LocaleDisplayNamesImpl.getLocale()LocaleDisplayNamesImpl.ICUDataTable.getLocale()CurrencyData.DefaultInfo.getULocale()ICUCurrencyDisplayInfoProvider.ICUCurrencyDisplayInfo.getULocale()ICUResourceBundle.getULocale()ResourceBundleWrapper.getULocale()(package private) ULocale[]ICUResourceBundle.AvailEntry.getULocaleList(ULocale.AvailableType type) Methods in com.ibm.icu.impl that return types with arguments of type ULocaleModifier and TypeMethodDescriptionPluralRulesLoader.getRulesIdToEquivalentULocaleMap()Returns the lazily-constructed map.Methods in com.ibm.icu.impl with parameters of type ULocaleModifier and TypeMethodDescriptionprotected TimeZoneGenericNamesTimeZoneGenericNames.Cache.createInstance(String key, ULocale data) static ICULocaleService.LocaleKeyICULocaleService.LocaleKey.createWithCanonical(ULocale locale, String canonicalFallbackID, int kind) Create a LocaleKey with canonical primary and fallback IDs.PluralRulesLoader.forLocale(ULocale locale, PluralRules.PluralType type) Returns the plural rules for the the locale.Convenience override for callers using locales.Convenience override for callers using locales.Convenience override for callers using locales.Convenience override for callers using locales.ICUService.LocaleRef.get(ULocale loc, Comparator<Object> comp) LocaleDisplayNamesImpl.Cache.get(ULocale locale, DisplayContext... contexts) LocaleDisplayNamesImpl.Cache.get(ULocale locale, LocaleDisplayNames.DialectHandling dialectHandling) abstract LocaleDisplayNamesImpl.DataTablestatic ICUResourceBundleICUResourceBundle.getBundleInstance(String baseName, ULocale locale, ICUResourceBundle.OpenType openType) static StringCalendarUtil.getCalendarType(ULocale loc) Returns a calendar type for the given locale.static final intUCaseProps.getCaseLocale(ULocale locale) ICULocaleService.LocaleKeyFactory.getDisplayName(String id, ULocale locale) Return a localized name for the locale represented by id.ICUService.Factory.getDisplayName(String id, ULocale locale) Return the display name for this id in the provided locale.ICUService.getDisplayName(String id, ULocale locale) Given a visible id, return the display name in the requested locale.ICUService.SimpleFactory.getDisplayName(String identifier, ULocale locale) If this.id equals id, returns id regardless of locale, otherwise returns null.ICUService.getDisplayNames(ULocale locale) Convenience override of getDisplayNames(ULocale, Comparator, String) that uses null for the comparator, and null for the matchID.ICUService.getDisplayNames(ULocale locale, String matchID) Convenience override of getDisplayNames(ULocale, Comparator, String) that uses null for the comparator.ICUService.getDisplayNames(ULocale locale, Comparator<Object> com) Convenience override of getDisplayNames(ULocale, Comparator, String) that uses null for the matchID, thus returning all display names.ICUService.getDisplayNames(ULocale locale, Comparator<Object> com, String matchID) Return a snapshot of the mapping from display names to visible IDs for this service.static final ULocaleICUResourceBundle.getFunctionalEquivalent(String baseName, ClassLoader loader, String resName, String keyword, ULocale locID, boolean[] isAvailable, boolean omitDefault) Returns a functionally equivalent locale, considering keywords as well, for the specified keyword.PluralRulesLoader.getFunctionalEquivalent(ULocale locale, boolean[] isAvailable) Returns the functionally equivalent locale.CurrencyData.CurrencyDisplayInfoProvider.getInstance(ULocale locale, boolean withFallback) static DayPeriodRulesDayPeriodRules.getInstance(ULocale locale) Get a DayPeriodRules object given a locale.ICUCurrencyDisplayInfoProvider.getInstance(ULocale locale, boolean withFallback) static LocaleDisplayNamesLocaleDisplayNamesImpl.getInstance(ULocale locale, DisplayContext... contexts) static LocaleDisplayNamesLocaleDisplayNamesImpl.getInstance(ULocale locale, LocaleDisplayNames.DialectHandling dialectHandling) static TimeZoneGenericNamesTimeZoneGenericNames.getInstance(ULocale locale) The factory method ofTimeZoneGenericNames.static final Locale[]ICUResourceBundle.getLocaleList(ULocale[] ulocales) Convert a list of ULocales to a list of Locales.PluralRulesLoader.getOrCreateRulesForLocale(ULocale locale, PluralRules.PluralType type) Gets the rule from the rulesId.PluralRulesLoader.getRulesIdForLocale(ULocale locale, PluralRules.PluralType type) Gets the rulesId from the locale,with locale fallback.static StringICUResourceTableAccess.getTableString(String path, ULocale locale, String tableName, String itemName, String defaultValue) Utility to fetch locale display data from resource bundle tables.TimeZoneNamesFactoryImpl.getTimeZoneNames(ULocale locale) static BreakIteratorCaseMapImpl.getTitleBreakIterator(ULocale locale, int options, BreakIterator iter) protected ObjectICULocaleService.ICUResourceBundleFactory.handleCreate(ULocale loc, int kind, ICUService service) Create the service.protected ObjectICULocaleService.LocaleKeyFactory.handleCreate(ULocale loc, int kind, ICUService service) Utility method used by create(Key, ICUService).booleanPluralRulesLoader.hasOverride(ULocale locale) private voidRelativeDateFormat.initCapitalizationContextInfo(ULocale locale) Set capitalizationOfRelativeUnitsForListOrMenu, capitalizationOfRelativeUnitsForStandAloneprivate voidDateNumberFormat.initialize(ULocale loc, String digitString, String nsName) private voidTimeZoneNamesImpl.initialize(ULocale locale) Initialize the transient fields, called from the constructor and readObject.private CalendarRelativeDateFormat.initializeCalendar(TimeZone zone, ULocale locale) initializes fCalendar from parameters.private MessageFormatRelativeDateFormat.initializeCombinedFormat(Calendar cal, ULocale locale) LocaleDisplayNamesImpl.localeDisplayName(ULocale locale) private StringLocaleDisplayNamesImpl.localeDisplayNameInternal(ULocale locale) private LocaleDisplayNames.UiListItemLocaleDisplayNamesImpl.newRow(ULocale modified, DisplayContext capContext) ICULocaleService.registerObject(Object obj, ULocale locale) Convenience override for callers using locales.ICULocaleService.registerObject(Object obj, ULocale locale, boolean visible) Convenience override for callers using locales.ICULocaleService.registerObject(Object obj, ULocale locale, int kind) Convenience function for callers using locales.ICULocaleService.registerObject(Object obj, ULocale locale, int kind, boolean visible) Convenience function for callers using locales.private static StringLocaleDisplayNamesImpl.toTitleWholeStringNoLowercase(ULocale locale, String s) Method parameters in com.ibm.icu.impl with type arguments of type ULocaleModifier and TypeMethodDescriptionLocaleDisplayNamesImpl.getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<LocaleDisplayNames.UiListItem> comparator) Constructors in com.ibm.icu.impl with parameters of type ULocaleModifierConstructorDescriptionCreate SimpleFilteredBreakIteratorBuilder using given localeDateNumberFormat(ULocale loc, char zeroDigit, String nsName) DateNumberFormat(ULocale loc, String digitString, String nsName) ICUCurrencyDisplayInfo(ULocale locale, ICUResourceBundle rb, boolean fallback) ICUDataTable(String path, ULocale locale, boolean nullIfNotFound) LocaleDisplayNamesImpl(ULocale locale, DisplayContext... contexts) LocaleDisplayNamesImpl(ULocale locale, LocaleDisplayNames.DialectHandling dialectHandling) (package private)RelativeDateFormat(int timeStyle, int dateStyle, ULocale locale, Calendar cal) SimpleLocaleKeyFactory(Object obj, ULocale locale, int kind, boolean visible) SimpleLocaleKeyFactory(Object obj, ULocale locale, int kind, boolean visible, String name) privateTimeZoneGenericNames(ULocale locale) Constructs aTimeZoneGenericNameswith the given locale.TimeZoneGenericNames(ULocale locale, TimeZoneNames tznames) Constructs aTimeZoneGenericNameswith the given locale and theTimeZoneNames.TimeZoneNamesImpl(ULocale locale) TZDBTimeZoneNames(ULocale loc) -
Uses of ULocale in com.ibm.icu.impl.coll
Fields in com.ibm.icu.impl.coll declared as ULocaleMethods in com.ibm.icu.impl.coll with parameters of type ULocaleModifier and TypeMethodDescription(package private) static Stringstatic CollationTailoringCollationLoader.loadTailoring(ULocale locale, Output<ULocale> outValidLocale) Method parameters in com.ibm.icu.impl.coll with type arguments of type ULocaleModifier and TypeMethodDescriptionstatic CollationTailoringCollationLoader.loadTailoring(ULocale locale, Output<ULocale> outValidLocale) -
Uses of ULocale in com.ibm.icu.impl.duration
Methods in com.ibm.icu.impl.duration with parameters of type ULocaleModifier and TypeMethodDescriptionstatic BasicDurationFormatBasicDurationFormat.getInstance(ULocale locale) Constructors in com.ibm.icu.impl.duration with parameters of type ULocale -
Uses of ULocale in com.ibm.icu.impl.icuadapter
Methods in com.ibm.icu.impl.icuadapter with parameters of type ULocaleModifier and TypeMethodDescriptionTimeZoneJDK.getDisplayName(boolean daylight, int style, ULocale locale) -
Uses of ULocale in com.ibm.icu.impl.javaspi
Methods in com.ibm.icu.impl.javaspi that return ULocaleModifier and TypeMethodDescriptionstatic ULocaleICULocaleServiceProvider.toULocaleNoSpecialVariant(Locale locale) Methods in com.ibm.icu.impl.javaspi with parameters of type ULocaleModifier and TypeMethodDescriptionprivate static voidICULocaleServiceProvider.addULocale(ULocale uloc, Set<Locale> locales) -
Uses of ULocale in com.ibm.icu.impl.locale
Methods in com.ibm.icu.impl.locale that return ULocaleModifier and TypeMethodDescriptionLikelySubtags.canonicalize(ULocale locale) Implementation of LocaleMatcher.canonicalize(ULocale).Methods in com.ibm.icu.impl.locale with parameters of type ULocaleModifier and TypeMethodDescriptionLikelySubtags.canonicalize(ULocale locale) Implementation of LocaleMatcher.canonicalize(ULocale).private booleanLocaleValidityChecker.isSubdivision(ULocale locale, String subtag) booleanLocaleValidityChecker.isValid(ULocale locale, LocaleValidityChecker.Where where) private booleanLocaleValidityChecker.isValidU(ULocale locale, ValidIdentifiers.Datatype datatype, String extensionString, LocaleValidityChecker.Where where) LikelySubtags.makeMaximizedLsrFrom(ULocale locale, boolean returnInputIfUnmatch) intLocaleDistance.testOnlyDistance(ULocale desired, ULocale supported, int threshold, LocaleMatcher.FavorSubtag favorSubtag) -
Uses of ULocale in com.ibm.icu.impl.number
Fields in com.ibm.icu.impl.number declared as ULocaleModifier and TypeFieldDescriptionMacroProps.locprivate final ULocaleLocalizedNumberFormatterAsFormat.localeMethods in com.ibm.icu.impl.number with parameters of type ULocaleModifier and TypeMethodDescriptionprivate static StringLongNameHandler.calculateGenderForUnit(ULocale locale, MeasureUnit unit) Calculates the gender of an arbitrary unit: this is the *second* implementation of an algorithm to do this: Gender is also calculated in "processPatternTimes": that code path is "bottom up", loading the gender for every component of a compound unit (at the same time as loading the Long Names formatting patterns), even if the gender is unneeded, then combining the single units' genders into the compound unit's gender, according to the rules.private static LongNameHandlerLongNameHandler.forArbitraryUnit(ULocale loc, MeasureUnit unit, NumberFormatter.UnitWidth width, String unitDisplayCase, PluralRules rules, MicroPropsGenerator parent) static LongNameHandlerLongNameHandler.forCurrencyLongNames(ULocale locale, Currency currency, PluralRules rules, MicroPropsGenerator parent) static LongNameHandlerLongNameHandler.forMeasureUnit(ULocale locale, MeasureUnit unit, NumberFormatter.UnitWidth width, String unitDisplayCase, PluralRules rules, MicroPropsGenerator parent) Construct a localized LongNameHandler for the specified MeasureUnit.static MixedUnitLongNameHandlerMixedUnitLongNameHandler.forMeasureUnit(ULocale locale, MeasureUnit mixedUnit, NumberFormatter.UnitWidth width, String unitDisplayCase, PluralRules rules, MicroPropsGenerator parent) Construct a localized MixedUnitLongNameHandler for the specified MeasureUnit.static LongNameMultiplexerLongNameMultiplexer.forMeasureUnits(ULocale locale, List<MeasureUnit> units, NumberFormatter.UnitWidth width, String unitDisplayCase, PluralRules rules, MicroPropsGenerator parent) private static StringLongNameHandler.getCompoundValue(String compoundKey, ULocale locale, NumberFormatter.UnitWidth width) private static voidLongNameHandler.getCurrencyLongNameData(ULocale locale, Currency currency, String[] outArray) private static StringLongNameHandler.getDeriveCompoundRule(ULocale locale, String feature, String structure) Loads and returns the value in rules that look like these:Currently a fake example, but spec compliant: NOTE: If U_FAILURE(status), returns an empty string. private static StringLongNameHandler.getDerivedGender(ULocale locale, String structure, String[] data0, String[] data1) private static StringLongNameHandler.getGenderForBuiltin(ULocale locale, MeasureUnit builtinUnit) (package private) static voidLongNameHandler.getInflectedMeasureData(String subKey, ULocale locale, NumberFormatter.UnitWidth width, String gender, String caseVariant, String[] outArray) (package private) static voidLongNameHandler.getMeasureData(ULocale locale, MeasureUnit unit, NumberFormatter.UnitWidth width, String unitDisplayCase, String[] outArray) private static shortGrouper.getMinGroupingForLocale(ULocale locale) CustomSymbolCurrency.getName(ULocale locale, int nameStyle, String pluralCount, boolean[] isChoiceFormat) static StringLongNameHandler.getUnitDisplayName(ULocale locale, MeasureUnit unit, NumberFormatter.UnitWidth width) private static voidLongNameHandler.maybeCalculateGender(ULocale locale, MeasureUnit unit, String[] outArray) voidCompactData.populate(ULocale locale, String nsName, CompactDecimalFormat.CompactStyle compactStyle, CompactData.CompactType compactType) private static voidLongNameHandler.processPatternTimes(MeasureUnitImpl productUnit, ULocale loc, NumberFormatter.UnitWidth width, String caseVariant, String[] outArray) Roughly corresponds to patternTimes(...) in the spec: https://unicode.org/reports/tr35/tr35-general.html#compound-unitsstatic CurrencyCustomSymbolCurrency.resolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) Grouper.withLocaleData(ULocale locale, PatternStringParser.ParsedPatternInfo patternInfo) Constructors in com.ibm.icu.impl.number with parameters of type ULocaleModifierConstructorDescription(package private)DerivedComponents(ULocale locale, String feature, String structure) Constructor.LocalizedNumberFormatterAsFormat(LocalizedNumberFormatter formatter, ULocale locale) UsagePrefsHandler(ULocale locale, MeasureUnit inputUnit, String usage, MicroPropsGenerator parent) -
Uses of ULocale in com.ibm.icu.impl.number.parse
Fields in com.ibm.icu.impl.number.parse declared as ULocaleMethods in com.ibm.icu.impl.number.parse with parameters of type ULocaleModifier and TypeMethodDescriptionstatic NumberParserImplNumberParserImpl.createDefaultParserForLocale(ULocale loc) static NumberParserImplNumberParserImpl.createSimpleParser(ULocale locale, String pattern, int parseFlags) Creates a parser with most default options. -
Uses of ULocale in com.ibm.icu.impl.number.range
Fields in com.ibm.icu.impl.number.range declared as ULocaleMethods in com.ibm.icu.impl.number.range with parameters of type ULocaleModifier and TypeMethodDescriptionstatic StandardPluralRangesCreate a StandardPluralRanges based on locale.static StringStandardPluralRanges.getSetForLocale(ULocale locale) Get the set name from the locale. -
Uses of ULocale in com.ibm.icu.impl.text
Methods in com.ibm.icu.impl.text with parameters of type ULocaleModifier and TypeMethodDescriptionprotected RbnfLenientScannerRbnfScannerProviderImpl.createScanner(ULocale locale, String extras) Deprecated.This API is ICU internal only.Deprecated.This API is ICU internal only. -
Uses of ULocale in com.ibm.icu.impl.units
Methods in com.ibm.icu.impl.units with parameters of type ULocaleModifier and TypeMethodDescriptionUnitPreferences.getPreferencesFor(String category, String usage, ULocale locale, UnitsData data) UnitsData.getPreferencesFor(String category, String usage, ULocale locale) Constructors in com.ibm.icu.impl.units with parameters of type ULocaleModifierConstructorDescriptionUnitsRouter(MeasureUnitImpl inputUnit, ULocale locale, String usage) UnitsRouter(String inputUnitIdentifier, ULocale locale, String usage) -
Uses of ULocale in com.ibm.icu.lang
Methods in com.ibm.icu.lang with parameters of type ULocaleModifier and TypeMethodDescriptionprivate static int[]UScript.findCodeFromLocale(ULocale locale) Helper function to find the code from locale.private static intUCharacter.getCaseLocale(ULocale locale) static final int[]Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.private static int[]UScript.getCodesFromLocale(ULocale locale) static StringUCharacter.toLowerCase(ULocale locale, String str) Returns the lowercase version of the argument string.static StringUCharacter.toTitleCase(ULocale locale, String str, BreakIterator titleIter) Returns the titlecase version of the argument string.static StringUCharacter.toTitleCase(ULocale locale, String str, BreakIterator titleIter, int options) Returns the titlecase version of the argument string.static StringUCharacter.toUpperCase(ULocale locale, String str) Returns the uppercase version of the argument string. -
Uses of ULocale in com.ibm.icu.number
Methods in com.ibm.icu.number with parameters of type ULocaleModifier and TypeMethodDescriptionprivate static voidNumberRangeFormatterImpl.getNumberRangeData(ULocale locale, String nsName, NumberRangeFormatterImpl out) ULocale version of theUnlocalizedNumberFormatter.locale(Locale)setter above.ULocale version of theUnlocalizedNumberRangeFormatter.locale(Locale)setter above.static LocalizedNumberFormatterNumberFormatter.withLocale(ULocale locale) Call this method at the beginning of a NumberFormatter fluent chain in which the locale is known at the call site.NumberRangeFormatter.withLocale(ULocale locale) Call this method at the beginning of a NumberRangeFormatter fluent chain in which the locale is known at the call site.(package private) MicroPropsGeneratorCompactNotation.withLocaleData(ULocale locale, String nsName, CompactData.CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) Constructors in com.ibm.icu.number with parameters of type ULocaleModifierConstructorDescriptionprivateCompactHandler(CompactNotation notation, ULocale locale, String nsName, CompactData.CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) -
Uses of ULocale in com.ibm.icu.text
Fields in com.ibm.icu.text declared as ULocaleModifier and TypeFieldDescriptionprivate ULocaleTimeZoneFormat._localeprivate ULocaleBreakIterator.actualLocaleThe locale containing data used to construct this object, or null.private ULocaleDateFormatSymbols.actualLocaleThe locale containing data used to construct this object, or null.private ULocaleDecimalFormatSymbols.actualLocaleThe locale containing data used to construct this object, or null.private ULocaleUFormat.actualLocaleThe locale containing data used to construct this object, or null.private static ULocaleSimpleDateFormat.cachedDefaultLocaleprivate final ULocaleListFormatter.localeprivate ULocaleLocaleDisplayNames.LastResortLocaleDisplayNames.localeprivate final ULocaleLowercaseTransliterator.localeprivate ULocaleMeasureFormat.MeasureProxy.localefinal ULocaleNumberingSystem.LocaleLookupData.localeprivate final ULocaleRelativeDateTimeFormatter.localeprivate ULocaleRuleBasedNumberFormat.localeThe formatter's locale.private ULocaleSimpleDateFormat.localeprivate ULocaleTimeUnitFormat.localeDeprecated.(package private) ULocaleTimeUnitFormat.TimeUnitFormatSetupSink.localeprivate final ULocaleTitlecaseTransliterator.localeprivate final ULocaleUppercaseTransliterator.localefinal ULocaleLocaleDisplayNames.UiListItem.minimizedReturns the minimized locale for an input locale, such as sr-Cyrl → srfinal ULocaleLocaleDisplayNames.UiListItem.modifiedReturns the modified locale for an input locale, such as sr → sr-Cyrl, where there is also an sr-Latn in the listprivate ULocaleDateFormatSymbols.requestedLocaleprivate ULocaleCurrencyPluralInfo.ulocaleprivate ULocaleDecimalFormatSymbols.ulocaleThe requested ULocale.private ULocaleMessageFormat.ulocaleThe locale to use for formatting numbers and dates.private ULocalePluralFormat.ulocaleThe locale used for standard number formatting and getting the predefined plural rules (if they were not defined explicitely).private final ULocaleRelativeDateTimeFormatter.Loader.ulocaleprivate ULocaleBreakIterator.validLocaleThe most specific locale containing any resource data, or null.private ULocaleDateFormatSymbols.validLocaleThe most specific locale containing any resource data, or null.(package private) final ULocaleDecimalFormatSymbols.CacheData.validLocaleprivate ULocaleDecimalFormatSymbols.validLocaleThe most specific locale containing any resource data, or null.private ULocaleRuleBasedCollator.validLocaleprivate ULocaleUFormat.validLocaleThe most specific locale containing any resource data, or null.private ULocaleBreakIterator.BreakIteratorCache.whereFields in com.ibm.icu.text with type parameters of type ULocaleModifier and TypeFieldDescriptionRelativeDateTimeFormatter.Cache.cacheprivate static final CacheBase<ULocale, DecimalFormatSymbols.CacheData, Void> DecimalFormatSymbols.cachedLocaleDatacache to hold the NumberElements of a Locale.private static CacheBase<String, DateFormatSymbols, ULocale> DateFormatSymbols.DFSCACHESpoofChecker.Builder.fAllowedLocalesSpoofChecker.fAllowedLocalesMeasureFormat.localeIdToRangeFormatprivate static final SimpleCache<ULocale, MeasureFormat.NumericFormatters> MeasureFormat.localeToNumericDurationFormattersMethods in com.ibm.icu.text that return ULocaleModifier and TypeMethodDescriptionabstract ULocale[]BreakIterator.BreakIteratorServiceShim.getAvailableULocales()static ULocale[]BreakIterator.getAvailableULocales()Returns a list of locales for which BreakIterators can be used.ULocale[]BreakIteratorFactory.getAvailableULocales()static final ULocale[]Collator.getAvailableULocales()Returns the set of locales, as ULocale objects, for which collators are installed.(package private) abstract ULocale[]Collator.ServiceShim.getAvailableULocales()(package private) ULocale[]CollatorServiceShim.getAvailableULocales()static ULocale[]DateFormat.getAvailableULocales()Returns the set of locales for which DateFormats are installed.static ULocale[]DateFormatSymbols.getAvailableULocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.static ULocale[]DecimalFormatSymbols.getAvailableULocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.static ULocale[]NumberFormat.getAvailableULocales()Returns the list of Locales for which NumberFormats are available.(package private) abstract ULocale[]NumberFormat.NumberFormatShim.getAvailableULocales()(package private) ULocale[]NumberFormatServiceShim.getAvailableULocales()abstract ULocale[]PluralRules.Factory.getAvailableULocales()Deprecated.This API is ICU internal only.static ULocale[]PluralRules.getAvailableULocales()Returns the set of locales for which PluralRules are known.static final ULocaleCollator.getFunctionalEquivalent(String keyword, ULocale locID) Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.static final ULocaleCollator.getFunctionalEquivalent(String keyword, ULocale locID, boolean[] isAvailable) Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.abstract ULocalePluralRules.Factory.getFunctionalEquivalent(ULocale locale, boolean[] isAvailable) Deprecated.This API is ICU internal only.static ULocalePluralRules.getFunctionalEquivalent(ULocale locale, boolean[] isAvailable) Returns the 'functionally equivalent' locale with respect to plural rules.(package private) ULocaleBreakIterator.BreakIteratorCache.getLocale()final ULocaleBreakIterator.getLocale(ULocale.Type type) Returns the locale that was used to create this object, or null.Collator.getLocale(ULocale.Type type) Returns the locale that was used to create this object, or null.CurrencyPluralInfo.getLocale()Get localefinal ULocaleDateFormatSymbols.getLocale(ULocale.Type type) Returns the locale that was used to create this object, or null.final ULocaleDecimalFormatSymbols.getLocale(ULocale.Type type) Returns the locale that was used to create this object, or null.ListFormatter.getLocale()Deprecated.This API is ICU internal only.abstract ULocaleLocaleDisplayNames.getLocale()Returns the locale used to determine the display names.LocaleDisplayNames.LastResortLocaleDisplayNames.getLocale()final ULocaleMeasureFormat.getLocale()Get the locale of this instance.RuleBasedCollator.getLocale(ULocale.Type type) Returns the locale that was used to create this object, or null.(package private) ULocaleSimpleDateFormat.getLocale()Get the locale of this simple date formatter.final ULocaleUFormat.getLocale(ULocale.Type type) Return the locale that was used to create this object, or null.ULocale[]RuleBasedNumberFormat.getRuleSetDisplayNameLocales()Return a list of locales for which there are locale-specific display names for the rule sets in this formatter.abstract ULocaleCurrencyDisplayNames.getULocale()Returns the locale used to determine how to translate the currency names.DecimalFormatSymbols.getULocale()Returns the locale for which this object was constructed.MessageFormat.getULocale()Returns the locale that's used when creating argument Format objects.Methods in com.ibm.icu.text that return types with arguments of type ULocaleModifier and TypeMethodDescriptionSpoofChecker.getAllowedLocales()Get a read-only set of locales for the scripts that are acceptable in strings to be checked.Methods in com.ibm.icu.text with parameters of type ULocaleModifier and TypeMethodDescriptionprivate voidDateTimePatternGenerator.addCLDRData(DateTimePatternGenerator.PatternInfo returnInfo, ULocale uLocale) private voidDateTimePatternGenerator.addICUPatterns(DateTimePatternGenerator.PatternInfo returnInfo, ULocale uLocale) private voidAlphabeticIndex.addIndexExemplars(ULocale locale) This method is called to get the index exemplars.Add more index characters (aside from what are in the locale)private voidSpoofChecker.Builder.addScriptChars(ULocale locale, UnicodeSet allowedChars) private static BreakIteratorBreakIteratorFactory.createBreakInstance(ULocale locale, int kind) abstract BreakIteratorBreakIterator.BreakIteratorServiceShim.createBreakIterator(ULocale l, int k) BreakIteratorFactory.createBreakIterator(ULocale locale, int kind) Collator.CollatorFactory.createCollator(ULocale loc) Return an instance of the appropriate collator.NumberFormat.NumberFormatFactory.createFormat(ULocale loc, int formatType) Returns a number format of the appropriate type.(package private) static NumberFormatNumberFormat.createInstance(ULocale desiredLocale, int choice) (package private) abstract NumberFormatNumberFormat.NumberFormatShim.createInstance(ULocale l, int k) (package private) NumberFormatNumberFormatServiceShim.createInstance(ULocale desiredLocale, int choice) protected TimeZoneFormatTimeZoneFormat.TimeZoneFormatCache.createInstance(ULocale key, ULocale data) protected TimeZoneNamesTimeZoneNames.Cache.createInstance(String key, ULocale data) final PluralRulesDeprecated.This API is ICU internal only.abstract PluralRulesPluralRules.Factory.forLocale(ULocale locale, PluralRules.PluralType type) Deprecated.This API is ICU internal only.static PluralRulesProvides access to the predefined cardinal-numberPluralRulesfor a given locale.static PluralRulesPluralRules.forLocale(ULocale locale, PluralRules.PluralType type) Provides access to the predefinedPluralRulesfor a given locale and the plural type.static DecimalFormatSymbolsDecimalFormatSymbols.forNumberingSystem(ULocale locale, NumberingSystem ns) Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the givenNumberingSystem.private static DateFormatCreates a DateFormat with the given time and/or date style in the given locale.Deprecated.ICU 54private voidDateTimePatternGenerator.getAllowedHourFormats(ULocale uLocale) static BreakIteratorBreakIterator.getBreakInstance(ULocale where, int kind) Deprecated.This API is ICU internal only.private StringDateTimePatternGenerator.getCalendarTypeToUse(ULocale uLocale) static BreakIteratorBreakIterator.getCharacterInstance(ULocale where) Returns a new instance of BreakIterator that locates logical-character boundaries.private StringDateIntervalFormat.getConcatenationPattern(ULocale locale) Retrieves the concatenation DateTime pattern from the resource bundle.static MeasureFormatMeasureFormat.getCurrencyFormat(ULocale locale) Return a formatter for CurrencyAmount objects in the given locale.static NumberFormatNumberFormat.getCurrencyInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static ResourceBundleDateFormatSymbols.getDateFormatBundle(Calendar cal, ULocale locale) Deprecated.ICU 4.0static ResourceBundleDateFormatSymbols.getDateFormatBundle(Class<? extends Calendar> calendarClass, ULocale locale) Deprecated.ICU 4.0static final DateFormatDateFormat.getDateInstance(int style, ULocale locale) Returns the date formatter with the given formatting style for the given locale.static final DateFormatDateFormat.getDateInstance(Calendar cal, int dateStyle, ULocale locale) Creates aDateFormatobject that can be used to format dates in the calendar system specified bycal.static final DateFormatDateFormat.getDateTimeInstance(int dateStyle, int timeStyle, ULocale locale) Returns the date/time formatter with the given formatting styles for the given locale.static final DateFormatDateFormat.getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, ULocale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.Collator.CollatorFactory.getDisplayName(ULocale objectLocale, ULocale displayLocale) Return the name of the collator for the objectLocale, localized for the displayLocale.static StringCollator.getDisplayName(ULocale objectLocale) Returns the name of the collator for the objectLocale, localized for the defaultDISPLAYlocale.static StringCollator.getDisplayName(ULocale objectLocale, ULocale displayLocale) Returns the name of the collator for the objectLocale, localized for the displayLocale.(package private) abstract StringCollator.ServiceShim.getDisplayName(ULocale ol, ULocale dl) (package private) StringCollatorServiceShim.getDisplayName(ULocale objectLocale, ULocale displayLocale) static StringTransliterator.getDisplayName(String id, ULocale inLocale) Returns a name for this transliterator that is appropriate for display to the user in the given locale.static DateTimePatternGeneratorDateTimePatternGenerator.getFrozenInstance(ULocale uLocale) Deprecated.This API is ICU internal only.static final ULocaleCollator.getFunctionalEquivalent(String keyword, ULocale locID) Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.static final ULocaleCollator.getFunctionalEquivalent(String keyword, ULocale locID, boolean[] isAvailable) Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.abstract ULocalePluralRules.Factory.getFunctionalEquivalent(ULocale locale, boolean[] isAvailable) Deprecated.This API is ICU internal only.static ULocalePluralRules.getFunctionalEquivalent(ULocale locale, boolean[] isAvailable) Returns the 'functionally equivalent' locale with respect to plural rules.static final CollatorCollator.getInstance(ULocale locale) Returns the Collator for the desired locale.(package private) abstract CollatorCollator.ServiceShim.getInstance(ULocale l) (package private) CollatorCollatorServiceShim.getInstance(ULocale locale) static CompactDecimalFormatCompactDecimalFormat.getInstance(ULocale locale, CompactDecimalFormat.CompactStyle style) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static CurrencyDisplayNamesCurrencyDisplayNames.getInstance(ULocale locale) Return an instance of CurrencyDisplayNames that provides information localized for display in the provided locale.static CurrencyDisplayNamesCurrencyDisplayNames.getInstance(ULocale locale, boolean noSubstitute) Return an instance of CurrencyDisplayNames that provides information localized for display in the provided locale.static CurrencyPluralInfoCurrencyPluralInfo.getInstance(ULocale locale) Gets a CurrencyPluralInfo instance for the given locale.static final DateFormatDateFormat.getInstance(Calendar cal, ULocale locale) Returns a date/time formatter that uses the SHORT style for both the date and the time.static DateFormatSymbolsDateFormatSymbols.getInstance(ULocale locale) Returns a DateFormatSymbols instance for the given locale.static final DateIntervalFormatDateIntervalFormat.getInstance(String skeleton, ULocale locale) Construct a DateIntervalFormat from skeleton and a given locale.static final DateIntervalFormatDateIntervalFormat.getInstance(String skeleton, ULocale locale, DateIntervalInfo dtitvinf) Construct a DateIntervalFormat from skeleton a DateIntervalInfo, and the given locale.static DateTimePatternGeneratorDateTimePatternGenerator.getInstance(ULocale uLocale) Construct a flexible generator according to data for a given locale.static DecimalFormatSymbolsDecimalFormatSymbols.getInstance(ULocale locale) Returns a DecimalFormatSymbols instance for the given locale.static DurationFormatDurationFormat.getInstance(ULocale locale) Deprecated.ICU 56static final FilteredBreakIteratorBuilderFilteredBreakIteratorBuilder.getInstance(ULocale where) Construct a FilteredBreakIteratorBuilder based on sentence break exception rules in a locale.static ListFormatterListFormatter.getInstance(ULocale locale) Create a list formatter that is appropriate for a locale.static ListFormatterListFormatter.getInstance(ULocale locale, ListFormatter.Type type, ListFormatter.Width width) Create a list formatter that is appropriate for a locale.static LocaleDisplayNamesLocaleDisplayNames.getInstance(ULocale locale) Convenience overload ofLocaleDisplayNames.getInstance(ULocale, DialectHandling)that specifies STANDARD dialect handling.static LocaleDisplayNamesLocaleDisplayNames.getInstance(ULocale locale, DisplayContext... contexts) Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided DisplayContext settingsstatic LocaleDisplayNamesLocaleDisplayNames.getInstance(ULocale locale, LocaleDisplayNames.DialectHandling dialectHandling) Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling.static MeasureFormatMeasureFormat.getInstance(ULocale locale, MeasureFormat.FormatWidth formatWidth) Create a format from the locale, formatWidth, and format.static MeasureFormatMeasureFormat.getInstance(ULocale locale, MeasureFormat.FormatWidth formatWidth, NumberFormat format) Create a format from the locale, formatWidth, and format.static NumberFormatNumberFormat.getInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberFormatNumberFormat.getInstance(ULocale desiredLocale, int choice) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static NumberingSystemNumberingSystem.getInstance(ULocale locale) Returns the default numbering system for the specified ULocale.static RelativeDateTimeFormatterRelativeDateTimeFormatter.getInstance(ULocale locale) Returns a RelativeDateTimeFormatter for a particular locale.static RelativeDateTimeFormatterRelativeDateTimeFormatter.getInstance(ULocale locale, NumberFormat nf) Returns a RelativeDateTimeFormatter for a particular locale that uses a particular NumberFormat object.static RelativeDateTimeFormatterRelativeDateTimeFormatter.getInstance(ULocale locale, NumberFormat nf, RelativeDateTimeFormatter.Style style, DisplayContext capitalizationContext) Returns a RelativeDateTimeFormatter for a particular locale that uses a particular NumberFormat object, style, and capitalization contextstatic TimeZoneFormatTimeZoneFormat.getInstance(ULocale locale) Returns a frozen instance ofTimeZoneFormatfor the given locale.static TimeZoneNamesTimeZoneNames.getInstance(ULocale locale) Returns an instance ofTimeZoneNamesfor the specified locale.private static ScientificNumberFormatterScientificNumberFormatter.getInstanceForLocale(ULocale locale, ScientificNumberFormatter.Style style) static final DateFormatDateFormat.getInstanceForSkeleton(Calendar cal, String skeleton, ULocale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.static final DateFormatDateFormat.getInstanceForSkeleton(String skeleton, ULocale locale) Returns aDateFormatobject that can be used to format dates and times in the given locale.static DateTimePatternGeneratorDateTimePatternGenerator.getInstanceNoStdPat(ULocale uLocale) Deprecated.This API is ICU internal only.static NumberFormatNumberFormat.getIntegerInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static final String[]Collator.getKeywordValuesForLocale(String key, ULocale locale, boolean commonlyUsed) Given a key and a locale, returns an array of string values in a preferred order that would make a difference.static BreakIteratorBreakIterator.getLineInstance(ULocale where) Returns a new instance of BreakIterator that locates legal line- wrapping positions.static ScientificNumberFormatterScientificNumberFormatter.getMarkupInstance(ULocale locale, String beginMarkup, String endMarkup) Gets a ScientificNumberFormatter instance that uses markup for exponents for this locale.private String[]RuleBasedNumberFormat.getNameListForLocale(ULocale loc) static NumberFormatNumberFormat.getNumberInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.protected static StringNumberFormat.getPattern(ULocale forLocale, int choice) Returns the pattern for the provided locale and choice.static StringNumberFormat.getPatternForStyle(ULocale forLocale, int choice) Deprecated.This API is ICU internal only.static StringNumberFormat.getPatternForStyleAndNumberingSystem(ULocale forLocale, String nsName, int choice) Deprecated.This API is ICU internal only.static final DateFormatDateFormat.getPatternInstance(Calendar cal, String skeleton, ULocale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.static final DateFormatDateFormat.getPatternInstance(String skeleton, ULocale locale) Returns aDateFormatobject that can be used to format dates and times in the given locale.static NumberFormatNumberFormat.getPercentInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static StringMeasureFormat.getRangeFormat(ULocale forLocale, MeasureFormat.FormatWidth width) Deprecated.This API is ICU internal only.RuleBasedNumberFormat.getRuleSetDisplayName(String ruleSetName, ULocale loc) Return the rule set display name for the provided rule set and locale.String[]RuleBasedNumberFormat.getRuleSetDisplayNames(ULocale loc) Return the rule set display names for the provided locale.static NumberFormatNumberFormat.getScientificInstance(ULocale inLocale) NOTE: New users are strongly encouraged to useNumberFormatterinstead of NumberFormat.static BreakIteratorBreakIterator.getSentenceInstance(ULocale where) Returns a new instance of BreakIterator that locates sentence boundaries.static ScientificNumberFormatterScientificNumberFormatter.getSuperscriptInstance(ULocale locale) Gets a ScientificNumberFormatter instance that uses superscript characters for exponents for this locale.static final DateFormatDateFormat.getTimeInstance(int style, ULocale locale) Returns the time formatter with the given formatting style for the given locale.static final DateFormatDateFormat.getTimeInstance(Calendar cal, int timeStyle, ULocale locale) Creates aDateFormatobject that can be used to format times in the calendar system specified bycal.TimeZoneNames.DefaultTimeZoneNames.FactoryImpl.getTimeZoneNames(ULocale locale) abstract TimeZoneNamesTimeZoneNames.Factory.getTimeZoneNames(ULocale locale) Deprecated.This API is ICU internal only.static BreakIteratorBreakIterator.getTitleInstance(ULocale where) Deprecated.ICU 64 UseBreakIterator.getWordInstance()instead.static TimeZoneNamesTimeZoneNames.getTZDBInstance(ULocale locale) Returns an instance ofTimeZoneNamescontaining only short specific zone names (TimeZoneNames.NameType.SHORT_STANDARDandTimeZoneNames.NameType.SHORT_DAYLIGHT), compatible with the IANA tz database's zone abbreviations (not localized).static BreakIteratorBreakIterator.getWordInstance(ULocale where) Returns a new instance of BreakIterator that locates word boundaries.abstract booleanPluralRules.Factory.hasOverride(ULocale locale) Deprecated.This API is ICU internal only.private voidPluralFormat.init(PluralRules rules, PluralRules.PluralType type, ULocale locale, NumberFormat numberFormat) private voidRuleBasedNumberFormat.initCapitalizationContextInfo(ULocale theLocale) Set capitalizationForListOrMenu, capitalizationForStandAloneprivate voidprivate voidCurrencyPluralInfo.initialize(ULocale uloc) private voidDecimalFormatSymbols.initialize(ULocale locale, NumberingSystem ns) Initializes the symbols from the locale data.protected voidChineseDateFormatSymbols.initializeData(ULocale loc, ICUResourceBundle b, String calendarType) Deprecated.ICU 50protected voidDateFormatSymbols.initializeData(ULocale desiredLocale, ICUResourceBundle b, String calendarType) Deprecated.This API is ICU internal only.protected voidDateFormatSymbols.initializeData(ULocale desiredLocale, String type) Initializes format symbols for the locale and calendar typeprivate voidDateIntervalInfo.initializeData(ULocale locale) private Map<String, DateIntervalInfo.PatternInfo> DateIntervalFormat.initializeIntervalPattern(String fullPattern, ULocale locale) private voidSimpleDateFormat.initNumberFormatters(ULocale loc) private static ListFormatterprivate static DecimalFormatSymbols.CacheDataprivate static MeasureFormat.NumericFormattersMeasureFormat.loadNumericFormatters(ULocale locale) LocaleDisplayNames.LastResortLocaleDisplayNames.localeDisplayName(ULocale locale) abstract StringLocaleDisplayNames.localeDisplayName(ULocale locale) Returns the display name of the provided ulocale.private static final CollatorCollatorServiceShim.makeInstance(ULocale desiredLocale) private StringDateIntervalFormat.normalizeHourMetacharacters(String skeleton, ULocale locale) private voidSimpleDateFormat.processOverrideString(ULocale loc, String str) abstract ObjectBreakIterator.BreakIteratorServiceShim.registerInstance(BreakIterator iter, ULocale l, int k) static ObjectBreakIterator.registerInstance(BreakIterator iter, ULocale locale, int kind) Registers a new break iterator of the indicated kind, to use in the given locale.BreakIteratorFactory.registerInstance(BreakIterator iter, ULocale locale, int kind) static final ObjectCollator.registerInstance(Collator collator, ULocale locale) Registers a collator as the default collator for the provided locale.(package private) abstract ObjectCollator.ServiceShim.registerInstance(Collator c, ULocale l) (package private) ObjectCollatorServiceShim.registerInstance(Collator collator, ULocale locale) private static voidCollator.setAttributesFromKeywords(ULocale loc, Collator coll, RuleBasedCollator rbc) Sets collation attributes according to locale keywords.private voidDateTimePatternGenerator.setDateTimeFromCalendar(ULocale uLocale) private voidDateTimePatternGenerator.setDecimalSymbols(ULocale uLocale) (package private) final voidSet information about the locales that were used to create this object.(package private) voidSet information about the locales that were used to create this object.voidSet locale.(package private) final voidSets information about the locales that were used to create this object.(package private) final voidSets information about the locales that were used to create this object.voidSets the locale to be used for creating argument Format objects.voidDeprecated.ICU 50 This method clears the pattern and might create a different kind of PluralRules instance; use one of the constructors to create a new instance instead.(package private) voidSet information about the locales that were used to create this object.Deprecated.ICU 53 seeMeasureFormat.(package private) final voidSet information about the locales that were used to create this object.private voidprivate voidCurrencyPluralInfo.setupCurrencyPluralPattern(ULocale uloc) (package private) MeasureFormatMeasureFormat.withLocale(ULocale locale) Method parameters in com.ibm.icu.text with type arguments of type ULocaleModifier and TypeMethodDescriptionLocaleDisplayNames.getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) Return a list of information used to construct a UI list of locale names.abstract List<LocaleDisplayNames.UiListItem> LocaleDisplayNames.getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<LocaleDisplayNames.UiListItem> comparator) Return a list of information used to construct a UI list of locale names, providing more access to control the sorting.LocaleDisplayNames.LastResortLocaleDisplayNames.getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<LocaleDisplayNames.UiListItem> comparator) SpoofChecker.Builder.setAllowedLocales(Set<ULocale> locales) Limit characters that are acceptable in identifiers being checked to those normally used with the languages associated with the specified locales.Constructors in com.ibm.icu.text with parameters of type ULocaleModifierConstructorDescriptionAlphabeticIndex(ULocale locale) Create the index object.privateAlphabeticIndex(ULocale locale, RuleBasedCollator collator) Internal constructor containing implementation used by public constructors.(package private)BreakIteratorCache(ULocale where, BreakIterator iter) ChineseDateFormat(String pattern, ULocale locale) Deprecated.ICU 50ChineseDateFormat(String pattern, String override, ULocale locale) Deprecated.ICU 50ChineseDateFormatSymbols(Calendar cal, ULocale locale) Deprecated.ICU 50ChineseDateFormatSymbols(ULocale locale) Deprecated.ICU 50(package private)CompactDecimalFormat(ULocale locale, CompactDecimalFormat.CompactStyle style) The public mechanism is CompactDecimalFormat.getInstance().CurrencyFormat(ULocale locale) CurrencyPluralInfo(ULocale locale) Create a CurrencyPluralInfo object for the given locale.DateFormatSymbols(Calendar cal, ULocale locale) Returns theDateFormatSymbolsobject that should be used to format a calendar system's dates in the given locale.DateFormatSymbols(ULocale locale) Constructs a DateFormatSymbols object by loading format data from resources for the given ulocale.privateDateFormatSymbols(ULocale desiredLocale, ICUResourceBundle b, String calendarType) Private, for cache.getInstance().DateFormatSymbols(Class<? extends Calendar> calendarClass, ULocale locale) Variant of DateFormatSymbols(Calendar, ULocale) that takes the Calendar class instead of a Calendar instance.DateFormatSymbols(ResourceBundle bundle, ULocale locale) Fetches a custom calendar's DateFormatSymbols out of the given resource bundle.privateDateIntervalFormat(String skeleton, ULocale locale, SimpleDateFormat simpleDateFormat) DateIntervalInfo(ULocale locale) Construct DateIntervalInfo for the given locale,DecimalFormatSymbols(ULocale locale) Creates a DecimalFormatSymbols object for the given locale.privateDecimalFormatSymbols(ULocale locale, NumberingSystem ns) protectedDurationFormat(ULocale locale) Deprecated.This API is ICU internal only.privateLastResortLocaleDisplayNames(ULocale locale, DisplayContext... contexts) privateLastResortLocaleDisplayNames(ULocale locale, LocaleDisplayNames.DialectHandling dialectHandling) private(package private)LocaleLookupData(ULocale locale, String numbersKeyword) Constructs a transliterator.(package private)MeasureFormat(ULocale locale, MeasureFormat.FormatWidth formatWidth) (package private)MeasureFormat(ULocale locale, MeasureFormat.FormatWidth formatWidth, NumberFormat numberFormat, PluralRules rules) privateMeasureFormat(ULocale locale, MeasureFormat.FormatWidth formatWidth, NumberFormat numberFormat, PluralRules rules, MeasureFormat.NumericFormatters formatters) MeasureProxy(ULocale locale, MeasureFormat.FormatWidth width, NumberFormat numberFormat, int subClass) MessageFormat(String pattern, ULocale locale) Constructs a MessageFormat for the specified locale and pattern.PluralFormat(ULocale ulocale) Creates a new cardinal-numberPluralFormatfor a given locale.PluralFormat(ULocale ulocale, PluralRules rules) Creates a new cardinal-numberPluralFormatfor a given set of rules.PluralFormat(ULocale ulocale, PluralRules.PluralType type) Creates a newPluralFormatfor the plural type.PluralFormat(ULocale ulocale, PluralRules.PluralType type, String pattern) Creates a newPluralFormatfor a plural type, a pattern and a locale.(package private)PluralFormat(ULocale ulocale, PluralRules.PluralType type, String pattern, NumberFormat numberFormat) Creates a newPluralFormatfor a plural type, a pattern and a locale.PluralFormat(ULocale ulocale, PluralRules rules, String pattern) Creates a new cardinal-numberPluralFormatfor a given set of rules, a pattern and a locale.PluralFormat(ULocale ulocale, String pattern) Creates a new cardinal-numberPluralFormatfor a given pattern string and locale.privateRelativeDateTimeFormatter(EnumMap<RelativeDateTimeFormatter.Style, EnumMap<RelativeDateTimeFormatter.AbsoluteUnit, EnumMap<RelativeDateTimeFormatter.Direction, String>>> qualitativeUnitMap, EnumMap<RelativeDateTimeFormatter.Style, EnumMap<RelativeDateTimeFormatter.RelativeUnit, String[][]>> patternMap, String combinedDateAndTime, PluralRules pluralRules, NumberFormat numberFormat, RelativeDateTimeFormatter.Style style, DisplayContext capitalizationContext, BreakIterator breakIterator, ULocale locale) (package private)RuleBasedNumberFormat(ULocale locale, int format) Creates a RuleBasedNumberFormat from a predefined description.RuleBasedNumberFormat(String description, ULocale locale) Creates a RuleBasedNumberFormat that behaves according to the description passed in.RuleBasedNumberFormat(String description, String[][] localizations, ULocale locale) Creates a RuleBasedNumberFormat that behaves according to the description passed in.privateSimpleDateFormat(String pattern, DateFormatSymbols formatData, Calendar calendar, NumberFormat numberFormat, ULocale locale, boolean useFastFormat, String override) (package private)SimpleDateFormat(String pattern, DateFormatSymbols formatData, Calendar calendar, ULocale locale, boolean useFastFormat, String override) Package-private constructor that allows a subclass to specify whether it supports fast formatting.SimpleDateFormat(String pattern, DateFormatSymbols formatData, ULocale loc) Deprecated.This API is ICU internal only.SimpleDateFormat(String pattern, ULocale loc) Constructs a SimpleDateFormat using the given pattern and locale.SimpleDateFormat(String pattern, String override, ULocale loc) Constructs a SimpleDateFormat using the given pattern , override and locale.SimpleNumberFormatFactory(ULocale locale) Constructs a SimpleNumberFormatFactory with the given locale.SimpleNumberFormatFactory(ULocale locale, boolean visible) Constructs a SimpleNumberFormatFactory with the given locale and the visibility.StringSearch(String pattern, CharacterIterator target, ULocale locale) Initializes the iterator to use the language-specific rules and break iterator rules defined in the argument locale to search for argument pattern in the argument target text.TimeUnitFormat(ULocale locale) Deprecated.ICU 53 useMeasureFormatinstead.TimeUnitFormat(ULocale locale, int style) Deprecated.ICU 53 useMeasureFormatinstead.privateTimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) Deprecated.(package private)TimeUnitFormatSetupSink(Map<TimeUnit, Map<String, Object[]>> timeUnitToCountToPatterns, int style, Set<String> pluralKeywords, ULocale locale) protectedTimeZoneFormat(ULocale locale) The protected constructor for subclassing.Constructs a transliterator.UiListItem(ULocale minimized, ULocale modified, String nameInDisplayLocale, String nameInSelf) Constructor, normally only called internally.Constructs a transliterator. -
Uses of ULocale in com.ibm.icu.util
Fields in com.ibm.icu.util declared as ULocaleModifier and TypeFieldDescriptionprivate ULocaleCalendar.actualLocaleThe locale containing data used to construct this object, or null.static final ULocaleULocale.CANADAUseful constant for country/region.static final ULocaleULocale.CANADA_FRENCHUseful constant for country/region.static final ULocaleULocale.CHINAUseful constant for country/region.static final ULocaleULocale.CHINESEUseful constant for language.private ULocaleLocaleMatcher.ULocaleLsrIterator.currentprivate static ULocale[]ULocale.defaultCategoryULocalesprivate ULocaleLocaleMatcher.Builder.defaultLocaleprivate final ULocaleLocaleMatcher.defaultULocaleprivate static ULocaleULocale.defaultULocaleKeep our own default ULocale.private final ULocaleLocaleMatcher.Result.desiredULocalestatic final ULocaleULocale.ENGLISHUseful constant for language.static final ULocaleULocale.FRANCEUseful constant for country/region.static final ULocaleULocale.FRENCHUseful constant for language.static final ULocaleULocale.GERMANUseful constant for language.static final ULocaleULocale.GERMANYUseful constant for country/region.static final ULocaleULocale.ITALIANUseful constant for language.static final ULocaleULocale.ITALYUseful constant for country/region.static final ULocaleULocale.JAPANUseful constant for country/region.static final ULocaleULocale.JAPANESEUseful constant for language.static final ULocaleULocale.KOREAUseful constant for country/region.static final ULocaleULocale.KOREANUseful constant for language.private ULocaleCalendar.FormatConfiguration.locDeprecated.private ULocaleLocaleMatcher.Builder.maxDistanceDesiredprivate ULocaleLocaleMatcher.Builder.maxDistanceSupportedstatic final ULocaleULocale.PRCUseful constant for country/region.private ULocaleLocaleMatcher.ULocaleLsrIterator.rememberedstatic final ULocaleULocale.ROOTThe root ULocale.static final ULocaleULocale.SIMPLIFIED_CHINESEUseful constant for language.private final ULocaleLocaleMatcher.Result.supportedULocaleprivate final ULocale[]LocaleMatcher.supportedULocalesstatic final ULocaleULocale.TAIWANUseful constant for country/region.static final ULocaleULocale.TRADITIONAL_CHINESEUseful constant for language.static final ULocaleULocale.UKUseful constant for country/region.private static final ULocaleCurrency.UNDprivate static final ULocaleLocaleMatcher.UND_ULOCALEstatic final ULocaleULocale.USUseful constant for country/region.private ULocaleCalendar.validLocaleThe most specific locale containing any resource data, or null.Fields in com.ibm.icu.util with type parameters of type ULocaleModifier and TypeFieldDescriptionGlobalizationPreferences.available_localesprivate final ICUCache<ULocale, GenderInfo> GenderInfo.Cache.cacheULocale.CACHEprivate static ICUCache<ULocale, List<TextTrieMap<Currency.CurrencyStringInfo>>> Currency.CURRENCY_NAME_CACHEGlobalizationPreferences.implicitLocalesLocalePriorityList.languagesAndWeightsLocalePriorityList.Builder.languageToWeightThese store the input languages and weights, in chronological order, where later additions override previous ones.GlobalizationPreferences.localesLocaleMatcher.ULocaleLsrIterator.localesLocaleMatcher.Builder.supportedLocalesMethods in com.ibm.icu.util that return ULocaleModifier and TypeMethodDescriptionstatic ULocaleULocale.acceptLanguage(ULocale[] acceptLanguageList, boolean[] fallback) Based on an ordered array of acceptable locales, determine an available locale for the user.static ULocaleULocale.acceptLanguage(ULocale[] acceptLanguageList, ULocale[] availableLocales, boolean[] fallback) Based on a list of acceptable locales, determine an available locale for the user.static ULocaleULocale.acceptLanguage(String acceptLanguageList, boolean[] fallback) Based on a HTTP formatted list of acceptable locales, determine an available locale for the user.static ULocaleULocale.acceptLanguage(String acceptLanguageList, ULocale[] availableLocales, boolean[] fallback) Based on a HTTP formatted list of acceptable locales, determine an available locale for the user.static ULocaleULocale.addLikelySubtags(ULocale loc) Adds the likely subtags for a provided locale ID, per the algorithm described in the following CLDR technical report: http://www.unicode.org/reports/tr35/#Likely_Subtags If the provided ULocale instance is already in the maximal form, or there is no data available available for maximization, it will be returned.ULocale.Builder.build()Returns an instance ofULocalecreated from the fields set on this builder.LocaleMatcher.canonicalize(ULocale locale) Partially canonicalizes a locale (language).static ULocaleULocale.createCanonical(ULocale locale) Creates a ULocale from the locale by first canonicalizing the locale according to CLDR.static ULocaleULocale.createCanonical(String nonCanonicalID) Creates a ULocale from the id by first canonicalizing the id according to CLDR.static ULocaleULocale.forLanguageTag(String languageTag) Returns a locale for the specified IETF BCP 47 language tag string.static ULocaleReturns a ULocale object for aLocale.private ULocaleGlobalizationPreferences.getAvailableLocale(int type) static ULocale[]ULocale.getAvailableLocales()Unlike the Locale API, this returns an array ofULocale, notLocale.static ULocale[]Calendar.getAvailableULocales()Returns the list of locales for which Calendars are installed.static ULocale[]Currency.getAvailableULocales()Return an array of the ulocales for which a currency is defined.(package private) abstract ULocale[]Currency.ServiceShim.getAvailableULocales()(package private) ULocale[]CurrencyServiceShim.getAvailableULocales()LocaleMatcher.getBestMatch(ULocale desiredLocale) Returns the supported locale which best matches the desired locale.LocaleMatcher.getBestMatch(Iterable<ULocale> desiredLocales) Returns the supported locale which best matches one of the desired locales.LocaleMatcher.getBestMatch(String desiredLocaleList) Parses the string likeLocalePriorityListdoes and returns the supported locale which best matches one of the desired locales.static ULocaleULocale.getDefault()Returns the current default ULocale.static ULocaleULocale.getDefault(ULocale.Category category) Returns the current default ULocale for the specified category.LocaleMatcher.Result.getDesiredULocale()Returns the best-matching desired locale.ULocale.getFallback()Returns the fallback locale for this locale.private static ULocaleULocale.getInstance(BaseLocale base, LocaleExtensions exts) Calendar.FormatConfiguration.getLocale()Deprecated.This API is ICU internal only.final ULocaleCalendar.getLocale(ULocale.Type type) Returns the locale that was used to create this object, or null.GlobalizationPreferences.getLocale(int index) Convenience function for getting the locales in priority orderLocaleMatcher.Result.getSupportedULocale()Returns the best-matching supported locale.abstract ULocaleUResourceBundle.getULocale()Returns the RFC 3066 conformant locale id of this resource bundle.LocaleMatcher.Result.makeResolvedULocale()Takes the best-matching supported locale and adds relevant fields of the best-matching desired locale, such as the -t- and -u- extensions.static ULocaleULocale.minimizeSubtags(ULocale loc) Minimizes the subtags for a provided locale ID, per the algorithm described in the following CLDR technical report: http://www.unicode.org/reports/tr35/#Likely_Subtags If the provided ULocale instance is already in the minimal form, or there is no data available for minimization, it will be returned.static ULocaleULocale.minimizeSubtags(ULocale loc, ULocale.Minimize fieldToFavor) Deprecated.This API is ICU internal only.ULocale.setKeywordValue(String keyword, String value) Given a keyword and a value, return a new locale with an updated keyword and value.static ULocaleMethods in com.ibm.icu.util that return types with arguments of type ULocaleModifier and TypeMethodDescriptionstatic Collection<ULocale> ULocale.getAvailableLocalesByType(ULocale.AvailableType type) Returns a list of all installed locales according to the specified type.GlobalizationPreferences.getLocales()Get a copy of the language/locale priority listLocalePriorityList.getULocales()Returns the locales as an immutable Set view.GlobalizationPreferences.guessLocales()This function can be overridden by subclasses to use different heuristics It MUST return a 'safe' value, one whose modification will not affect this object.LocalePriorityList.iterator()GlobalizationPreferences.processLocales(List<ULocale> inputLocales) Process a language/locale priority list specified viasetLocales.Methods in com.ibm.icu.util with parameters of type ULocaleModifier and TypeMethodDescriptionprivate StringTimeZone._getDisplayName(int style, boolean daylight, ULocale locale) internal version (which is called by public APIs) accepts SHORT, LONG, SHORT_GENERIC, LONG_GENERIC, SHORT_GMT, LONG_GMT, SHORT_COMMONLY_USED and GENERIC_LOCATION.static ULocaleULocale.acceptLanguage(ULocale[] acceptLanguageList, boolean[] fallback) Based on an ordered array of acceptable locales, determine an available locale for the user.static ULocaleULocale.acceptLanguage(ULocale[] acceptLanguageList, ULocale[] availableLocales, boolean[] fallback) Based on a list of acceptable locales, determine an available locale for the user.static ULocaleULocale.acceptLanguage(String acceptLanguageList, ULocale[] availableLocales, boolean[] fallback) Based on a HTTP formatted list of acceptable locales, determine an available locale for the user.static LocalePriorityList.BuilderCreates a Builder and adds locales, each with weight 1.0.static LocalePriorityList.BuilderCreates a Builder and adds a locale with a specified weight.Adds a locale with weight 1.0.Adds locales, each with weight 1.0.Adds a locale with a specified weight.static ULocaleULocale.addLikelySubtags(ULocale loc) Adds the likely subtags for a provided locale ID, per the algorithm described in the following CLDR technical report: http://www.unicode.org/reports/tr35/#Likely_Subtags If the provided ULocale instance is already in the maximal form, or there is no data available available for maximization, it will be returned.LocaleMatcher.Builder.addSupportedULocale(ULocale locale) Adds another supported locale.LocaleMatcher.canonicalize(ULocale locale) Partially canonicalizes a locale (language).intCompares two ULocale for ordering.static ULocaleULocale.createCanonical(ULocale locale) Creates a ULocale from the locale by first canonicalizing the locale according to CLDR.(package private) static CurrencyCurrency.createCurrency(ULocale loc) Instantiate a currency from resource data.private static CalendarCalendar.createInstance(ULocale locale) (package private) abstract CurrencyCurrency.ServiceShim.createInstance(ULocale l) (package private) CurrencyCurrencyServiceShim.createInstance(ULocale loc) private static DateFormatCalendar.formatHelper(Calendar cal, ULocale loc, int dateStyle, int timeStyle) static TimeZoneTimeZone.forULocaleOrDefault(ULocale locale) Deprecated.This API is ICU internal only.static String[]Currency.getAvailableCurrencyCodes(ULocale loc, Date d) Returns an array of Strings which contain the currency identifiers that are valid for the given locale on the given date.LocaleMatcher.getBestMatch(ULocale desiredLocale) Returns the supported locale which best matches the desired locale.LocaleMatcher.getBestMatchResult(ULocale desiredLocale) Returns the best match between the desired locale and the supported locales.static UResourceBundleUResourceBundle.getBundleInstance(ULocale locale) Creates a UResourceBundle for the locale specified, from which users can extract resources by using their corresponding keys.static UResourceBundleUResourceBundle.getBundleInstance(String baseName, ULocale locale) Creates a UResourceBundle, from which users can extract resources by using their corresponding keys.static UResourceBundleUResourceBundle.getBundleInstance(String baseName, ULocale locale, ClassLoader loader) Creates a UResourceBundle, from which users can extract resources by using their corresponding keys.
Note: Please use this API for loading non-ICU resources.private static CalTypeCalendar.getCalendarTypeForLocale(ULocale l) private static List<TextTrieMap<Currency.CurrencyStringInfo>> Currency.getCurrencyTrieVec(ULocale locale) static StringCalendar.getDateAtTimePattern(Calendar cal, ULocale uLocale, int dateStyle) Deprecated.This API is ICU internal only.Calendar.getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc) Returns aDateFormatappropriate to this calendar.static StringCalendar.getDateTimePattern(Calendar cal, ULocale uLocale, int dateStyle) Deprecated.This API is ICU internal only.ULocale.getDisplayCountry(ULocale displayLocale) Returns this locale's country localized for display in the provided locale.static StringULocale.getDisplayCountry(String localeID, ULocale displayLocale) Returns a locale's country localized for display in the provided locale.private static StringULocale.getDisplayCountryInternal(ULocale locale, ULocale displayLocale) static StringULocale.getDisplayKeyword(String keyword, ULocale displayLocale) Returns a keyword localized for display in the specified locale.private static StringULocale.getDisplayKeywordInternal(String keyword, ULocale displayLocale) ULocale.getDisplayKeywordValue(String keyword, ULocale displayLocale) Returns a keyword value localized for display in the specified locale.static StringULocale.getDisplayKeywordValue(String localeID, String keyword, ULocale displayLocale) Returns a keyword value localized for display in the specified locale.private static StringULocale.getDisplayKeywordValueInternal(ULocale locale, String keyword, ULocale displayLocale) ULocale.getDisplayLanguage(ULocale displayLocale) Returns this locale's language localized for display in the provided locale.static StringULocale.getDisplayLanguage(String localeID, ULocale displayLocale) Returns a locale's language localized for display in the provided locale.private static StringULocale.getDisplayLanguageInternal(ULocale locale, ULocale displayLocale, boolean useDialect) ULocale.getDisplayLanguageWithDialect(ULocale displayLocale) Returns this locale's language localized for display in the provided locale.static StringULocale.getDisplayLanguageWithDialect(String localeID, ULocale displayLocale) Returns a locale's language localized for display in the provided locale.Calendar.getDisplayName(ULocale loc) Returns the name of this calendar in the language of the given locale.Holiday.getDisplayName(ULocale locale) Return the name of this holiday in the language of the specified locale Thenameparameter passed to this object's constructor is used as a key to look up the holiday's localized name in a ResourceBundle object named HolidayBundle.TimeZone.getDisplayName(boolean daylight, int style, ULocale locale) Returns a name of this time zone suitable for presentation to the user in the specified locale.final StringTimeZone.getDisplayName(ULocale locale) Returns a name of this time zone suitable for presentation to the user in the specified locale.ULocale.getDisplayName(ULocale displayLocale) Returns this locale name localized for display in the provided locale.static StringULocale.getDisplayName(String localeID, ULocale displayLocale) Returns the locale ID localized for display in the provided locale.private static StringULocale.getDisplayNameInternal(ULocale locale, ULocale displayLocale) ULocale.getDisplayNameWithDialect(ULocale displayLocale) Returns this locale name localized for display in the provided locale.static StringULocale.getDisplayNameWithDialect(String localeID, ULocale displayLocale) Returns the locale ID localized for display in the provided locale.private static StringULocale.getDisplayNameWithDialectInternal(ULocale locale, ULocale displayLocale) ULocale.getDisplayScript(ULocale displayLocale) Returns this locale's script localized for display in the provided locale.static StringULocale.getDisplayScript(String localeID, ULocale displayLocale) Returns a locale's script localized for display in the provided locale.ULocale.getDisplayScriptInContext(ULocale displayLocale) Deprecated.This API is ICU internal only.static StringULocale.getDisplayScriptInContext(String localeID, ULocale displayLocale) Deprecated.This API is ICU internal only.private static StringULocale.getDisplayScriptInContextInternal(ULocale locale, ULocale displayLocale) private static StringULocale.getDisplayScriptInternal(ULocale locale, ULocale displayLocale) ULocale.getDisplayVariant(ULocale displayLocale) Returns this locale's variant localized for display in the provided locale.static StringULocale.getDisplayVariant(String localeID, ULocale displayLocale) Returns a locale's variant localized for display in the provided locale.private static StringULocale.getDisplayVariantInternal(ULocale locale, ULocale displayLocale) static UnicodeSetLocaleData.getExemplarSet(ULocale locale, int options) Returns the set of exemplar characters for a locale.static UnicodeSetLocaleData.getExemplarSet(ULocale locale, int options, int extype) Returns the set of exemplar characters for a locale.static Holiday[]Holiday.getHolidays(ULocale locale) static CalendarCalendar.getInstance(TimeZone zone, ULocale locale) Returns a calendar with the specified time zone and locale.static CalendarCalendar.getInstance(ULocale locale) Returns a calendar using the default time zone and specified locale.static CurrencyCurrency.getInstance(ULocale locale) Returns a currency object for the default currency in the given locale.static GenderInfoGenderInfo.getInstance(ULocale uLocale) Deprecated.This API is ICU internal only.static final LocaleDataLocaleData.getInstance(ULocale locale) Gets the LocaleData object associated with the ULocale specified in localeprivate static CalendarCalendar.getInstanceInternal(TimeZone tz, ULocale locale) static final String[]Calendar.getKeywordValuesForLocale(String key, ULocale locale, boolean commonlyUsed) Given a key and a locale, returns an array of string values in a preferred order that would make a difference.static final String[]Currency.getKeywordValuesForLocale(String key, ULocale locale, boolean commonlyUsed) Given a key and a locale, returns an array of values for the key for which data exists.private static final LSRLocaleMatcher.getMaximalLsrOrUnd(ULocale locale) static final LocaleData.MeasurementSystemLocaleData.getMeasurementSystem(ULocale locale) Returns the measurement system used in the locale specified by the locale.Returns the display name for the given currency in the given locale.Returns the display name for the given currency in the given locale.static final LocaleData.PaperSizeLocaleData.getPaperSize(ULocale locale) Returns the size of paper used in the locale.Currency.getParsingTrie(ULocale locale, int type) Deprecated.This API is ICU internal only.private static Calendar.PatternDataCalendar.getPatternData(ULocale locale, String calType) Retrieves the DateTime patterns and overrides from the resource bundle and generates a new PatternData object.private static StringCalendar.getRegionForCalendar(ULocale loc) static StringULocale.getRegionForSupplementalData(ULocale locale, boolean inferRegion) Deprecated.This API is ICU internal only.private static StringULocale.getRegionFromKey(ULocale locale, String key) Get region code from a key in locale or null.Convenience and compatibility override of getName that requests the symbol name.Returns the weight for a given language/locale, or null if there is none.protected DateFormatCalendar.handleGetDateFormat(String pattern, ULocale locale) Creates aDateFormatappropriate to this calendar.protected DateFormatCalendar.handleGetDateFormat(String pattern, String override, ULocale locale) Creates aDateFormatappropriate to this calendar.protected DateFormatChineseCalendar.handleGetDateFormat(String pattern, String override, ULocale locale) Creates aDateFormatappropriate to this calendar.private booleanGlobalizationPreferences.isAvailableLocale(ULocale loc, int type) booleanReturns true if the pair of locales matches acceptably.private static GenderInfoprivate static Calendar.PatternDataprivate LocaleMatcher.ResultLocaleMatcher.makeResult(ULocale desiredLocale, LocaleMatcher.ULocaleLsrIterator lsrIter, int suppIndex) doubleDeprecated.ICU 65 Build and use a matcher rather than comparing pairs of locales.private static UResourceBundleLocaleData.measurementTypeBundleForLocale(ULocale locale, String measurementType) Utility for getMeasurementSystem and getPaperSizestatic ULocaleULocale.minimizeSubtags(ULocale loc) Minimizes the subtags for a provided locale ID, per the algorithm described in the following CLDR technical report: http://www.unicode.org/reports/tr35/#Likely_Subtags If the provided ULocale instance is already in the minimal form, or there is no data available for minimization, it will be returned.static ULocaleULocale.minimizeSubtags(ULocale loc, ULocale.Minimize fieldToFavor) Deprecated.This API is ICU internal only.static StringCurrency.parse(ULocale locale, String text, int type, ParsePosition pos) Deprecated.This API is ICU internal only.static ObjectCurrency.registerInstance(Currency currency, ULocale locale) Registers a new currency for the provided locale.(package private) abstract ObjectCurrency.ServiceShim.registerInstance(Currency c, ULocale l) (package private) ObjectCurrencyServiceShim.registerInstance(Currency currency, ULocale locale) private voidEthiopicCalendar.setCalcTypeForLocale(ULocale locale) set type based on localeprivate voidIslamicCalendar.setCalcTypeForLocale(ULocale locale) set type based on localeprivate voidCalendar.setCalendarLocale(ULocale locale) static voidULocale.setDefault(ULocale newLocale) Sets the default ULocale.static voidULocale.setDefault(ULocale.Category category, ULocale newLocale) Sets the defaultULocalefor the specifiedCategory.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.(package private) final voidSet information about the locales that were used to create this object.Convenience routine for setting the language/locale priority list from a single locale/language.Resets theBuilderto match the providedlocale.GlobalizationPreferences.setLocales(ULocale[] uLocales) Convenience routine for setting the language/locale priority list from an array.LocaleMatcher.Builder.setMaxDistance(ULocale desired, ULocale supported) Sets the maximum distance for an acceptable match.private static voidCurrency.setupCurrencyTrieVec(ULocale locale, List<TextTrieMap<Currency.CurrencyStringInfo>> trieVec) static LocaleMethod parameters in com.ibm.icu.util with type arguments of type ULocaleModifier and TypeMethodDescriptionLocaleMatcher.getBestMatch(Iterable<ULocale> desiredLocales) Returns the supported locale which best matches one of the desired locales.LocaleMatcher.getBestMatchResult(Iterable<ULocale> desiredLocales) Returns the best match between the desired and supported locales.GlobalizationPreferences.processLocales(List<ULocale> inputLocales) Process a language/locale priority list specified viasetLocales.GlobalizationPreferences.setLocales(List<ULocale> inputLocales) Sets the language/locale priority list.LocaleMatcher.Builder.setSupportedULocales(Collection<ULocale> locales) Copies the supported locales, preserving iteration order.Constructors in com.ibm.icu.util with parameters of type ULocaleModifierConstructorDescriptionBuddhistCalendar(TimeZone zone, ULocale locale) Constructs aBuddhistCalendarbased on the current time in the given time zone with the given locale.BuddhistCalendar(ULocale locale) Constructs aBuddhistCalendarbased on the current time in the default time zone with the given locale.protectedConstructs a calendar with the specified time zone and locale.protectedCECalendar(TimeZone zone, ULocale locale) Constructs aCECalendarbased on the current time in the given time zone with the given locale.protectedCECalendar(ULocale locale) Constructs aCECalendarbased on the current time in the default time zone with the given locale.ChineseCalendar(TimeZone zone, ULocale locale) Construct aChineseCalendarbased on the current time with the given time zone with the given locale.protectedChineseCalendar(TimeZone zone, ULocale locale, int epochYear, TimeZone zoneAstroCalc) Deprecated.This API is ICU internal only.ChineseCalendar(ULocale locale) Constructs aChineseCalendarbased on the current time in the default time zone with the given locale.CopticCalendar(TimeZone zone, ULocale locale) Constructs aCopticCalendarbased on the current time in the given time zone with the given locale.CopticCalendar(ULocale locale) Constructs aCopticCalendarbased on the current time in the default time zone with the given locale.DangiCalendar(TimeZone zone, ULocale locale) Deprecated.This API is ICU internal only.EthiopicCalendar(TimeZone zone, ULocale locale) Constructs aEthiopicCalendarbased on the current time in the given time zone with the given locale.EthiopicCalendar(ULocale locale) Constructs aEthiopicCalendarbased on the current time in the default time zone with the given locale.GregorianCalendar(TimeZone zone, ULocale locale) Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.GregorianCalendar(ULocale locale) Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.HebrewCalendar(TimeZone zone, ULocale locale) Constructs aHebrewCalendarbased on the current time in the given time zone with the given locale.HebrewCalendar(ULocale locale) Constructs aHebrewCalendarbased on the current time in the default time zone with the given locale.IndianCalendar(TimeZone zone, ULocale locale) Constructs aIndianCalendarbased on the current time in the given time zone with the given locale.IndianCalendar(ULocale locale) Constructs aIndianCalendarbased on the current time in the default time zone with the given locale.IslamicCalendar(TimeZone zone, ULocale locale) Constructs anIslamicCalendarbased on the current time in the given time zone with the given locale.IslamicCalendar(ULocale locale) Constructs anIslamicCalendarbased on the current time in the default time zone with the given locale.JapaneseCalendar(TimeZone zone, ULocale locale) Constructs aJapaneseCalendarbased on the current time in the given time zone with the given locale.JapaneseCalendar(ULocale locale) Constructs aJapaneseCalendarbased on the current time in the default time zone with the given locale.PersianCalendar(TimeZone zone, ULocale locale) Deprecated.This API is ICU internal only.PersianCalendar(ULocale locale) Deprecated.This API is ICU internal only.privateResult(ULocale udesired, ULocale usupported, Locale desired, Locale supported, int desIndex, int suppIndex) TaiwanCalendar(TimeZone zone, ULocale locale) Constructs aTaiwanCalendarbased on the current time in the given time zone with the given locale.TaiwanCalendar(ULocale locale) Constructs aTaiwanCalendarbased on the current time in the default time zone with the given locale.Constructor parameters in com.ibm.icu.util with type arguments of type ULocaleModifierConstructorDescriptionprivateLocalePriorityList(Map<ULocale, Double> languageToWeight) (package private)ULocaleLsrIterator(Iterator<ULocale> locales)