Lines Matching refs:Locale

308      *                Locale.getDefault({@link Locale.Category#DISPLAY}))
313 * @see #getDisplayName(boolean, int, Locale)
314 * @see Locale#getDefault(Locale.Category)
315 * @see Locale.Category
319 Locale.getDefault(Locale.Category.DISPLAY));
335 * @see #getDisplayName(boolean, int, Locale)
337 public final String getDisplayName(Locale locale) {
351 * Locale.getDefault({@link Locale.Category#DISPLAY}))
360 * @see #getDisplayName(boolean, int, Locale)
361 * @see Locale#getDefault(Locale.Category)
362 * @see Locale.Category
367 Locale.getDefault(Locale.Category.DISPLAY));
379 * ResourceBundle.Control#getCandidateLocales(String,Locale) default
380 * <code>Locale</code> search path of <code>ResourceBundle</code>} derived
382 * ResourceBundle.Control#getFallbackLocale(String,Locale) fallback
383 * <code>Locale</code>} search is performed.) If a time zone name in any
384 * {@code Locale} of the search path, including {@link Locale#ROOT}, is
398 public String getDisplayName(boolean daylight, int style, Locale locale) {
430 private static final Map<String, SoftReference<Map<Locale, String[]>>> CACHE =
431 new ConcurrentHashMap<String, SoftReference<Map<Locale, String[]>>>();
434 private static final String[] getDisplayNames(String id, Locale locale) {
435 Map<String, SoftReference<Map<Locale, String[]>>> displayNames = DisplayNames.CACHE;
437 SoftReference<Map<Locale, String[]>> ref = displayNames.get(id);
439 Map<Locale, String[]> perLocale = ref.get();
455 Map<Locale, String[]> perLocale = new ConcurrentHashMap<Locale, String[]>();
457 ref = new SoftReference<Map<Locale, String[]>>(perLocale);