Lines Matching defs:CalendarSystem
40 * <code>CalendarSystem</code> is an abstract class that defines the
43 * <p><code>CalendarSystem</code> instances are singletons. For
50 * <p>For the methods in a <code>CalendarSystem</code> that manipulate
52 * been created by the <code>CalendarSystem</code> must be
75 public abstract class CalendarSystem {
84 // Map of calendar names and CalendarSystem instances
85 private static ConcurrentMap<String,CalendarSystem> calendars;
112 synchronized (CalendarSystem.class) {
115 calendars = new ConcurrentHashMap<String,CalendarSystem>();
134 * Returns a <code>CalendarSystem</code> specified by the calendar
139 * @return the <code>CalendarSystem</code> specified by
141 * <code>CalendarSystem</code> associated with the given calendar name.
143 public static CalendarSystem forName(String calendarName) {
152 CalendarSystem cal = calendars.get(calendarName);
168 cal = (CalendarSystem) cl.newInstance();
176 CalendarSystem cs = calendars.putIfAbsent(calendarName, cal);
308 * Gregorian cal = CalendarSystem.getGregorianCalendar();