• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 /*
28  * (C) Copyright Taligent, Inc. 1996-1998 - All Rights Reserved
29  * (C) Copyright IBM Corp. 1996-1998 - All Rights Reserved
30  *
31  *   The original version of this source code and documentation is copyrighted
32  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
33  * materials are provided under terms of a License Agreement between Taligent
34  * and Sun. This technology is protected by multiple US and International
35  * patents. This notice and attribution to Taligent may not be removed.
36  *   Taligent is a registered trademark of Taligent, Inc.
37  *
38  */
39 
40 
41 package java.util;
42 
43 import java.text.DateFormat;
44 import java.text.DateFormatSymbols;
45 import java.time.Instant;
46 
47 @SuppressWarnings({"unchecked", "deprecation", "all"})
48 public abstract class Calendar implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Calendar> {
49 
Calendar()50 protected Calendar() { throw new RuntimeException("Stub!"); }
51 
Calendar(@ibcore.util.NonNull java.util.TimeZone zone, @libcore.util.NonNull java.util.Locale aLocale)52 protected Calendar(@libcore.util.NonNull java.util.TimeZone zone, @libcore.util.NonNull java.util.Locale aLocale) { throw new RuntimeException("Stub!"); }
53 
getInstance()54 @libcore.util.NonNull public static java.util.Calendar getInstance() { throw new RuntimeException("Stub!"); }
55 
getInstance(@ibcore.util.NonNull java.util.TimeZone zone)56 @libcore.util.NonNull public static java.util.Calendar getInstance(@libcore.util.NonNull java.util.TimeZone zone) { throw new RuntimeException("Stub!"); }
57 
getInstance(@ibcore.util.NonNull java.util.Locale aLocale)58 @libcore.util.NonNull public static java.util.Calendar getInstance(@libcore.util.NonNull java.util.Locale aLocale) { throw new RuntimeException("Stub!"); }
59 
getInstance(@ibcore.util.NonNull java.util.TimeZone zone, @libcore.util.NonNull java.util.Locale aLocale)60 @libcore.util.NonNull public static java.util.Calendar getInstance(@libcore.util.NonNull java.util.TimeZone zone, @libcore.util.NonNull java.util.Locale aLocale) { throw new RuntimeException("Stub!"); }
61 
getAvailableLocales()62 public static synchronized java.util.@libcore.util.NonNull Locale @libcore.util.NonNull [] getAvailableLocales() { throw new RuntimeException("Stub!"); }
63 
computeTime()64 protected abstract void computeTime();
65 
computeFields()66 protected abstract void computeFields();
67 
getTime()68 @libcore.util.NonNull public final java.util.Date getTime() { throw new RuntimeException("Stub!"); }
69 
setTime(@ibcore.util.NonNull java.util.Date date)70 public final void setTime(@libcore.util.NonNull java.util.Date date) { throw new RuntimeException("Stub!"); }
71 
getTimeInMillis()72 public long getTimeInMillis() { throw new RuntimeException("Stub!"); }
73 
setTimeInMillis(long millis)74 public void setTimeInMillis(long millis) { throw new RuntimeException("Stub!"); }
75 
get(int field)76 public int get(int field) { throw new RuntimeException("Stub!"); }
77 
internalGet(int field)78 protected final int internalGet(int field) { throw new RuntimeException("Stub!"); }
79 
set(int field, int value)80 public void set(int field, int value) { throw new RuntimeException("Stub!"); }
81 
set(int year, int month, int date)82 public final void set(int year, int month, int date) { throw new RuntimeException("Stub!"); }
83 
set(int year, int month, int date, int hourOfDay, int minute)84 public final void set(int year, int month, int date, int hourOfDay, int minute) { throw new RuntimeException("Stub!"); }
85 
set(int year, int month, int date, int hourOfDay, int minute, int second)86 public final void set(int year, int month, int date, int hourOfDay, int minute, int second) { throw new RuntimeException("Stub!"); }
87 
clear()88 public final void clear() { throw new RuntimeException("Stub!"); }
89 
clear(int field)90 public final void clear(int field) { throw new RuntimeException("Stub!"); }
91 
isSet(int field)92 public final boolean isSet(int field) { throw new RuntimeException("Stub!"); }
93 
getDisplayName(int field, int style, @libcore.util.NonNull java.util.Locale locale)94 @libcore.util.Nullable public java.lang.String getDisplayName(int field, int style, @libcore.util.NonNull java.util.Locale locale) { throw new RuntimeException("Stub!"); }
95 
getDisplayNames(int field, int style, @libcore.util.NonNull java.util.Locale locale)96 @libcore.util.Nullable public java.util.Map<java.lang.@libcore.util.NonNull String, java.lang.@libcore.util.NonNull Integer> getDisplayNames(int field, int style, @libcore.util.NonNull java.util.Locale locale) { throw new RuntimeException("Stub!"); }
97 
complete()98 protected void complete() { throw new RuntimeException("Stub!"); }
99 
getAvailableCalendarTypes()100 @libcore.util.NonNull public static java.util.Set<java.lang.@libcore.util.NonNull String> getAvailableCalendarTypes() { throw new RuntimeException("Stub!"); }
101 
getCalendarType()102 @libcore.util.NonNull public java.lang.String getCalendarType() { throw new RuntimeException("Stub!"); }
103 
equals(@ibcore.util.Nullable java.lang.Object obj)104 public boolean equals(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
105 
hashCode()106 public int hashCode() { throw new RuntimeException("Stub!"); }
107 
before(@ibcore.util.Nullable java.lang.Object when)108 public boolean before(@libcore.util.Nullable java.lang.Object when) { throw new RuntimeException("Stub!"); }
109 
after(@ibcore.util.Nullable java.lang.Object when)110 public boolean after(@libcore.util.Nullable java.lang.Object when) { throw new RuntimeException("Stub!"); }
111 
compareTo(@ibcore.util.NonNull java.util.Calendar anotherCalendar)112 public int compareTo(@libcore.util.NonNull java.util.Calendar anotherCalendar) { throw new RuntimeException("Stub!"); }
113 
add(int field, int amount)114 public abstract void add(int field, int amount);
115 
roll(int field, boolean up)116 public abstract void roll(int field, boolean up);
117 
roll(int field, int amount)118 public void roll(int field, int amount) { throw new RuntimeException("Stub!"); }
119 
setTimeZone(@ibcore.util.NonNull java.util.TimeZone value)120 public void setTimeZone(@libcore.util.NonNull java.util.TimeZone value) { throw new RuntimeException("Stub!"); }
121 
getTimeZone()122 @libcore.util.NonNull public java.util.TimeZone getTimeZone() { throw new RuntimeException("Stub!"); }
123 
setLenient(boolean lenient)124 public void setLenient(boolean lenient) { throw new RuntimeException("Stub!"); }
125 
isLenient()126 public boolean isLenient() { throw new RuntimeException("Stub!"); }
127 
setFirstDayOfWeek(int value)128 public void setFirstDayOfWeek(int value) { throw new RuntimeException("Stub!"); }
129 
getFirstDayOfWeek()130 public int getFirstDayOfWeek() { throw new RuntimeException("Stub!"); }
131 
setMinimalDaysInFirstWeek(int value)132 public void setMinimalDaysInFirstWeek(int value) { throw new RuntimeException("Stub!"); }
133 
getMinimalDaysInFirstWeek()134 public int getMinimalDaysInFirstWeek() { throw new RuntimeException("Stub!"); }
135 
isWeekDateSupported()136 public boolean isWeekDateSupported() { throw new RuntimeException("Stub!"); }
137 
getWeekYear()138 public int getWeekYear() { throw new RuntimeException("Stub!"); }
139 
setWeekDate(int weekYear, int weekOfYear, int dayOfWeek)140 public void setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { throw new RuntimeException("Stub!"); }
141 
getWeeksInWeekYear()142 public int getWeeksInWeekYear() { throw new RuntimeException("Stub!"); }
143 
getMinimum(int field)144 public abstract int getMinimum(int field);
145 
getMaximum(int field)146 public abstract int getMaximum(int field);
147 
getGreatestMinimum(int field)148 public abstract int getGreatestMinimum(int field);
149 
getLeastMaximum(int field)150 public abstract int getLeastMaximum(int field);
151 
getActualMinimum(int field)152 public int getActualMinimum(int field) { throw new RuntimeException("Stub!"); }
153 
getActualMaximum(int field)154 public int getActualMaximum(int field) { throw new RuntimeException("Stub!"); }
155 
clone()156 @libcore.util.NonNull public java.lang.Object clone() { throw new RuntimeException("Stub!"); }
157 
toString()158 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
159 
toInstant()160 @libcore.util.NonNull public final java.time.Instant toInstant() { throw new RuntimeException("Stub!"); }
161 
162 public static final int ALL_STYLES = 0; // 0x0
163 
164 public static final int AM = 0; // 0x0
165 
166 public static final int AM_PM = 9; // 0x9
167 
168 public static final int APRIL = 3; // 0x3
169 
170 public static final int AUGUST = 7; // 0x7
171 
172 public static final int DATE = 5; // 0x5
173 
174 public static final int DAY_OF_MONTH = 5; // 0x5
175 
176 public static final int DAY_OF_WEEK = 7; // 0x7
177 
178 public static final int DAY_OF_WEEK_IN_MONTH = 8; // 0x8
179 
180 public static final int DAY_OF_YEAR = 6; // 0x6
181 
182 public static final int DECEMBER = 11; // 0xb
183 
184 public static final int DST_OFFSET = 16; // 0x10
185 
186 public static final int ERA = 0; // 0x0
187 
188 public static final int FEBRUARY = 1; // 0x1
189 
190 public static final int FIELD_COUNT = 17; // 0x11
191 
192 public static final int FRIDAY = 6; // 0x6
193 
194 public static final int HOUR = 10; // 0xa
195 
196 public static final int HOUR_OF_DAY = 11; // 0xb
197 
198 public static final int JANUARY = 0; // 0x0
199 
200 public static final int JULY = 6; // 0x6
201 
202 public static final int JUNE = 5; // 0x5
203 
204 public static final int LONG = 2; // 0x2
205 
206 public static final int LONG_FORMAT = 2; // 0x2
207 
208 public static final int LONG_STANDALONE = 32770; // 0x8002
209 
210 public static final int MARCH = 2; // 0x2
211 
212 public static final int MAY = 4; // 0x4
213 
214 public static final int MILLISECOND = 14; // 0xe
215 
216 public static final int MINUTE = 12; // 0xc
217 
218 public static final int MONDAY = 2; // 0x2
219 
220 public static final int MONTH = 2; // 0x2
221 
222 public static final int NARROW_FORMAT = 4; // 0x4
223 
224 public static final int NARROW_STANDALONE = 32772; // 0x8004
225 
226 public static final int NOVEMBER = 10; // 0xa
227 
228 public static final int OCTOBER = 9; // 0x9
229 
230 public static final int PM = 1; // 0x1
231 
232 public static final int SATURDAY = 7; // 0x7
233 
234 public static final int SECOND = 13; // 0xd
235 
236 public static final int SEPTEMBER = 8; // 0x8
237 
238 public static final int SHORT = 1; // 0x1
239 
240 public static final int SHORT_FORMAT = 1; // 0x1
241 
242 public static final int SHORT_STANDALONE = 32769; // 0x8001
243 
244 public static final int SUNDAY = 1; // 0x1
245 
246 public static final int THURSDAY = 5; // 0x5
247 
248 public static final int TUESDAY = 3; // 0x3
249 
250 public static final int UNDECIMBER = 12; // 0xc
251 
252 public static final int WEDNESDAY = 4; // 0x4
253 
254 public static final int WEEK_OF_MONTH = 4; // 0x4
255 
256 public static final int WEEK_OF_YEAR = 3; // 0x3
257 
258 public static final int YEAR = 1; // 0x1
259 
260 public static final int ZONE_OFFSET = 15; // 0xf
261 
262 protected boolean areFieldsSet;
263 
264 protected int @libcore.util.NonNull [] fields;
265 
266 protected boolean @libcore.util.NonNull [] isSet;
267 
268 protected boolean isTimeSet;
269 
270 protected long time;
271 
272 @SuppressWarnings({"unchecked", "deprecation", "all"})
273 public static class Builder {
274 
Builder()275 public Builder() { throw new RuntimeException("Stub!"); }
276 
setInstant(long instant)277 @libcore.util.NonNull public java.util.Calendar.Builder setInstant(long instant) { throw new RuntimeException("Stub!"); }
278 
setInstant(@ibcore.util.NonNull java.util.Date instant)279 @libcore.util.NonNull public java.util.Calendar.Builder setInstant(@libcore.util.NonNull java.util.Date instant) { throw new RuntimeException("Stub!"); }
280 
set(int field, int value)281 @libcore.util.NonNull public java.util.Calendar.Builder set(int field, int value) { throw new RuntimeException("Stub!"); }
282 
setFields(int @libcore.util.NonNull ... fieldValuePairs)283 @libcore.util.NonNull public java.util.Calendar.Builder setFields(int @libcore.util.NonNull ... fieldValuePairs) { throw new RuntimeException("Stub!"); }
284 
setDate(int year, int month, int dayOfMonth)285 @libcore.util.NonNull public java.util.Calendar.Builder setDate(int year, int month, int dayOfMonth) { throw new RuntimeException("Stub!"); }
286 
setTimeOfDay(int hourOfDay, int minute, int second)287 @libcore.util.NonNull public java.util.Calendar.Builder setTimeOfDay(int hourOfDay, int minute, int second) { throw new RuntimeException("Stub!"); }
288 
setTimeOfDay(int hourOfDay, int minute, int second, int millis)289 @libcore.util.NonNull public java.util.Calendar.Builder setTimeOfDay(int hourOfDay, int minute, int second, int millis) { throw new RuntimeException("Stub!"); }
290 
setWeekDate(int weekYear, int weekOfYear, int dayOfWeek)291 @libcore.util.NonNull public java.util.Calendar.Builder setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { throw new RuntimeException("Stub!"); }
292 
setTimeZone(@ibcore.util.NonNull java.util.TimeZone zone)293 @libcore.util.NonNull public java.util.Calendar.Builder setTimeZone(@libcore.util.NonNull java.util.TimeZone zone) { throw new RuntimeException("Stub!"); }
294 
setLenient(boolean lenient)295 @libcore.util.NonNull public java.util.Calendar.Builder setLenient(boolean lenient) { throw new RuntimeException("Stub!"); }
296 
setCalendarType(@ibcore.util.NonNull java.lang.String type)297 @libcore.util.NonNull public java.util.Calendar.Builder setCalendarType(@libcore.util.NonNull java.lang.String type) { throw new RuntimeException("Stub!"); }
298 
setLocale(@ibcore.util.NonNull java.util.Locale locale)299 @libcore.util.NonNull public java.util.Calendar.Builder setLocale(@libcore.util.NonNull java.util.Locale locale) { throw new RuntimeException("Stub!"); }
300 
setWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek)301 @libcore.util.NonNull public java.util.Calendar.Builder setWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek) { throw new RuntimeException("Stub!"); }
302 
build()303 @libcore.util.NonNull public java.util.Calendar build() { throw new RuntimeException("Stub!"); }
304 }
305 
306 }
307