001: package java.util;
002:
003: import java.io.IOException;
004: import java.io.ObjectInputStream;
005: import java.io.ObjectOutputStream;
006: import java.io.Serializable;
007: import java.lang.reflect.InvocationTargetException;
008:
009: public abstract class Calendar implements Serializable, Cloneable {
010: public static final int ERA = 0;
011: public static final int YEAR = 1;
012: public static final int MONTH = 2;
013: public static final int WEEK_OF_YEAR = 3;
014: public static final int WEEK_OF_MONTH = 4;
015: public static final int DATE = 5;
016: public static final int DAY_OF_MONTH = 5;
017: public static final int DAY_OF_YEAR = 6;
018: public static final int DAY_OF_WEEK = 7;
019: public static final int DAY_OF_WEEK_IN_MONTH = 8;
020: public static final int AM_PM = 9;
021: public static final int HOUR = 10;
022: public static final int HOUR_OF_DAY = 11;
023: public static final int MINUTE = 12;
024: public static final int SECOND = 13;
025: public static final int MILLISECOND = 14;
026: public static final int ZONE_OFFSET = 15;
027: public static final int DST_OFFSET = 16;
028: public static final int FIELD_COUNT = 17;
029: public static final int SUNDAY = 1;
030: public static final int MONDAY = 2;
031: public static final int TUESDAY = 3;
032: public static final int WEDNESDAY = 4;
033: public static final int THURSDAY = 5;
034: public static final int FRIDAY = 6;
035: public static final int SATURDAY = 7;
036: public static final int JANUARY = 0;
037: public static final int FEBRUARY = 1;
038: public static final int MARCH = 2;
039: public static final int APRIL = 3;
040: public static final int MAY = 4;
041: public static final int JUNE = 5;
042: public static final int JULY = 6;
043: public static final int AUGUST = 7;
044: public static final int SEPTEMBER = 8;
045: public static final int OCTOBER = 9;
046: public static final int NOVEMBER = 10;
047: public static final int DECEMBER = 11;
048: public static final int UNDECIMBER = 12;
049: public static final int AM = 0;
050: public static final int PM = 1;
051: protected int[] fields = new int[FIELD_COUNT];
052: protected boolean[] isSet = new boolean[FIELD_COUNT];
053: protected long time;
054: protected boolean isTimeSet;
055: protected boolean areFieldsSet;
056: static final long serialVersionUID = -1807547505821590642L;
057:
058: private static ResourceBundle getBundle(Locale locale) {
059: }
060:
061: protected Calendar() {
062: }
063:
064: protected Calendar(TimeZone zone, Locale locale) {
065: }
066:
067: public static synchronized Calendar getInstance() {
068: }
069:
070: public static synchronized Calendar getInstance(TimeZone zone) {
071: }
072:
073: public static synchronized Calendar getInstance(Locale locale) {
074: }
075:
076: public static synchronized Calendar getInstance(TimeZone zone,
077: Locale locale) {
078: }
079:
080: public static synchronized Locale[] getAvailableLocales() {
081: }
082:
083: protected abstract void computeTime();
084:
085: protected abstract void computeFields();
086:
087: public final Date getTime() {
088: }
089:
090: public final void setTime(Date date) {
091: }
092:
093: public long getTimeInMillis() {
094: }
095:
096: public void setTimeInMillis(long time) {
097: }
098:
099: public int get(int field) {
100: }
101:
102: protected final int internalGet(int field) {
103: }
104:
105: public void set(int field, int value) {
106: }
107:
108: public final void set(int year, int month, int date) {
109: }
110:
111: public final void set(int year, int month, int date, int hour,
112: int minute) {
113: }
114:
115: public final void set(int year, int month, int date, int hour,
116: int minute, int second) {
117: }
118:
119: public final void clear() {
120: }
121:
122: public final void clear(int field) {
123: }
124:
125: public final boolean isSet(int field) {
126: }
127:
128: protected void complete() {
129: }
130:
131: public boolean equals(Object o) {
132: }
133:
134: public int hashCode() {
135: }
136:
137: public boolean before(Object o) {
138: }
139:
140: public boolean after(Object o) {
141: }
142:
143: public abstract void add(int field, int amount);
144:
145: public abstract void roll(int field, boolean up);
146:
147: public void roll(int field, int amount) {
148: }
149:
150: public void setTimeZone(TimeZone zone) {
151: }
152:
153: public TimeZone getTimeZone() {
154: }
155:
156: public void setLenient(boolean lenient) {
157: }
158:
159: public boolean isLenient() {
160: }
161:
162: public void setFirstDayOfWeek(int value) {
163: }
164:
165: public int getFirstDayOfWeek() {
166: }
167:
168: public void setMinimalDaysInFirstWeek(int value) {
169: }
170:
171: public int getMinimalDaysInFirstWeek() {
172: }
173:
174: public abstract int getMinimum(int field);
175:
176: public abstract int getMaximum(int field);
177:
178: public abstract int getGreatestMinimum(int field);
179:
180: public abstract int getLeastMaximum(int field);
181:
182: public int getActualMinimum(int field) {
183: }
184:
185: public int getActualMaximum(int field) {
186: }
187:
188: public Object clone() {
189: }
190:
191: public String toString() {
192: }
193:
194: private void writeObject(ObjectOutputStream stream)
195: throws IOException {
196: }
197:
198: private void readObject(ObjectInputStream stream)
199: throws IOException, ClassNotFoundException {
200: }
201: }
|