Lines Matching refs:DateFormatSymbols

60  * <code>DateFormatSymbols</code> is a public class for encapsulating
64 * <code>DateFormatSymbols</code> to encapsulate this information.
67 * Typically you shouldn't use <code>DateFormatSymbols</code> directly.
71 * These methods automatically create a <code>DateFormatSymbols</code> for
83 * new SimpleDateFormat(aPattern, DateFormatSymbols.getInstance(aLocale)).
88 * <code>DateFormatSymbols</code> objects are cloneable. When you obtain
89 * a <code>DateFormatSymbols</code> object, feel free to modify the
96 * New <code>DateFormatSymbols</code> subclasses may be added to support
104 public class DateFormatSymbols implements Serializable, Cloneable {
107 * Construct a DateFormatSymbols object by loading format data from
120 public DateFormatSymbols()
126 * Construct a DateFormatSymbols object by loading format data from
139 public DateFormatSymbols(Locale locale)
268 * The locale which is used for initializing this DateFormatSymbols object.
289 * <code>DateFormatSymbols</code> instances are available.
299 * Gets the <code>DateFormatSymbols</code> instance for the default
300 * locale. This method provides access to <code>DateFormatSymbols</code>
305 * @return a <code>DateFormatSymbols</code> instance.
308 public static final DateFormatSymbols getInstance() {
313 * Gets the <code>DateFormatSymbols</code> instance for the specified
314 * locale. This method provides access to <code>DateFormatSymbols</code>
320 * @return a <code>DateFormatSymbols</code> instance.
324 public static final DateFormatSymbols getInstance(Locale locale) {
325 DateFormatSymbols dfs = getProviderInstance(locale);
329 return (DateFormatSymbols) getCachedInstance(locale).clone();
333 * Returns a DateFormatSymbols provided by a provider or found in
338 static final DateFormatSymbols getInstanceRef(Locale locale) {
339 DateFormatSymbols dfs = getProviderInstance(locale);
346 private static DateFormatSymbols getProviderInstance(Locale locale) {
347 DateFormatSymbols providersInstance = null;
361 * Returns a cached DateFormatSymbols if it's found in the
365 private static DateFormatSymbols getCachedInstance(Locale locale) {
366 SoftReference<DateFormatSymbols> ref = cachedInstances.get(locale);
367 DateFormatSymbols dfs = null;
369 dfs = new DateFormatSymbols(locale);
370 ref = new SoftReference<DateFormatSymbols>(dfs);
371 SoftReference<DateFormatSymbols> x = cachedInstances.putIfAbsent(locale, ref);
373 DateFormatSymbols y = x.get();
516 * on this <code>DateFormatSymbols</code> instance, then the strings
596 DateFormatSymbols other = (DateFormatSymbols)super.clone();
606 * Generates a hash code for the DateFormatSymbols object.
623 DateFormatSymbols that = (DateFormatSymbols) obj;
645 * Cache to hold DateFormatSymbols instances per Locale.
647 private static final ConcurrentMap<Locale, SoftReference<DateFormatSymbols>> cachedInstances
648 = new ConcurrentHashMap<Locale, SoftReference<DateFormatSymbols>>(3);
656 SoftReference<DateFormatSymbols> ref = cachedInstances.get(locale);
657 DateFormatSymbols dfs;
694 * the given time zone ID can't be located in the DateFormatSymbols object.
751 return !getClass().getName().equals("java.text.DateFormatSymbols");
755 * Clones all the data members from the source DateFormatSymbols to
756 * the target DateFormatSymbols. This is only for subclasses.
757 * @param src the source DateFormatSymbols.
758 * @param dst the target DateFormatSymbols.
760 private final void copyMembers(DateFormatSymbols src, DateFormatSymbols dst)
791 * Obtains a DateFormatSymbols instance from a DateFormatSymbolsProvider
796 DateFormatSymbols> {
800 public DateFormatSymbols getObject(DateFormatSymbolsProvider dateFormatSymbolsProvider,