Lines Matching refs:locale

78  * format pattern for a specific locale, you can do so with:
109 * locale. It is recommended that the {@link #getInstance(Locale) getInstance} method is used
118 * if the resources for the default locale cannot be
130 * resources for the given locale. It is recommended that the
133 * @param locale the desired locale
136 * if the resources for the specified locale cannot be
139 public DateFormatSymbols(Locale locale)
141 initializeData(locale);
197 * Localized names of time zones in this locale. This is a
266 * Localized date-time pattern characters. For example, a locale may
278 * The locale which is used for initializing this DateFormatSymbols object.
283 Locale locale = null;
385 * locale.
400 * locale.
401 * @param locale the given locale.
403 * @exception NullPointerException if <code>locale</code> is null
406 public static final DateFormatSymbols getInstance(Locale locale) {
408 return (DateFormatSymbols) getCachedInstance(locale).clone();
417 static final DateFormatSymbols getInstanceRef(Locale locale) {
419 return getCachedInstance(locale);
427 * for the given locale.
429 private static DateFormatSymbols getCachedInstance(Locale locale) {
430 SoftReference<DateFormatSymbols> ref = cachedInstances.get(locale);
433 dfs = new DateFormatSymbols(locale);
435 SoftReference<DateFormatSymbols> x = cachedInstances.putIfAbsent(locale, ref);
442 cachedInstances.put(locale, ref);
786 if (!isZoneStringsSet && !that.isZoneStringsSet && Objects.equals(locale, that.locale)) {
815 * Initializes this DateFormatSymbols with the locale data. This method uses
816 * a cached DateFormatSymbols instance for the given locale if available. If
820 private void initializeData(Locale locale) {
821 SoftReference<DateFormatSymbols> ref = cachedInstances.get(locale);
830 locale = LocaleData.mapInvalidAndNullLocales(locale);
831 LocaleData localeData = LocaleData.get(locale);
833 this.locale = locale;
916 zoneStrings = TimeZoneNames.getZoneStrings(locale);
950 dst.locale = src.locale;
984 LocaleData localeData = LocaleData.get(locale);