1 /*
2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 /*
27 * This file is available under and governed by the GNU General Public
28 * License version 2 only, as published by the Free Software Foundation.
29 * However, the following notice accompanied the original version of this
30 * file:
31 *
32 * Copyright (c) 2007-2012, Stephen Colebourne & Michael Nascimento Santos
33 *
34 * All rights reserved.
35 *
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions are met:
38 *
39 * * Redistributions of source code must retain the above copyright notice,
40 * this list of conditions and the following disclaimer.
41 *
42 * * Redistributions in binary form must reproduce the above copyright notice,
43 * this list of conditions and the following disclaimer in the documentation
44 * and/or other materials provided with the distribution.
45 *
46 * * Neither the name of JSR-310 nor the names of its contributors
47 * may be used to endorse or promote products derived from this software
48 * without specific prior written permission.
49 *
50 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
51 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
52 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
53 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
54 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
55 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
56 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
57 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
58 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
59 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
60 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
61 */
62
63 package java.time;
64
65 import libcore.api.Hide;
66
67 @SuppressWarnings({"unchecked", "deprecation", "all"})
68 public final class LocalDate implements java.time.temporal.Temporal, java.time.temporal.TemporalAdjuster, java.time.chrono.ChronoLocalDate, java.io.Serializable {
69
LocalDate()70 private LocalDate() { throw new RuntimeException("Stub!"); }
71
now()72 public static java.time.LocalDate now() { throw new RuntimeException("Stub!"); }
73
now(java.time.ZoneId zone)74 public static java.time.LocalDate now(java.time.ZoneId zone) { throw new RuntimeException("Stub!"); }
75
now(java.time.Clock clock)76 public static java.time.LocalDate now(java.time.Clock clock) { throw new RuntimeException("Stub!"); }
77
of(int year, java.time.Month month, int dayOfMonth)78 public static java.time.LocalDate of(int year, java.time.Month month, int dayOfMonth) { throw new RuntimeException("Stub!"); }
79
of(int year, int month, int dayOfMonth)80 public static java.time.LocalDate of(int year, int month, int dayOfMonth) { throw new RuntimeException("Stub!"); }
81
ofYearDay(int year, int dayOfYear)82 public static java.time.LocalDate ofYearDay(int year, int dayOfYear) { throw new RuntimeException("Stub!"); }
83
84 @Hide
ofInstant(java.time.Instant instant, java.time.ZoneId zone)85 public static java.time.LocalDate ofInstant(java.time.Instant instant, java.time.ZoneId zone) { throw new RuntimeException("Stub!"); }
86
ofEpochDay(long epochDay)87 public static java.time.LocalDate ofEpochDay(long epochDay) { throw new RuntimeException("Stub!"); }
88
from(java.time.temporal.TemporalAccessor temporal)89 public static java.time.LocalDate from(java.time.temporal.TemporalAccessor temporal) { throw new RuntimeException("Stub!"); }
90
parse(java.lang.CharSequence text)91 public static java.time.LocalDate parse(java.lang.CharSequence text) { throw new RuntimeException("Stub!"); }
92
parse(java.lang.CharSequence text, java.time.format.DateTimeFormatter formatter)93 public static java.time.LocalDate parse(java.lang.CharSequence text, java.time.format.DateTimeFormatter formatter) { throw new RuntimeException("Stub!"); }
94
isSupported(java.time.temporal.TemporalField field)95 public boolean isSupported(java.time.temporal.TemporalField field) { throw new RuntimeException("Stub!"); }
96
isSupported(java.time.temporal.TemporalUnit unit)97 public boolean isSupported(java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
98
range(java.time.temporal.TemporalField field)99 public java.time.temporal.ValueRange range(java.time.temporal.TemporalField field) { throw new RuntimeException("Stub!"); }
100
get(java.time.temporal.TemporalField field)101 public int get(java.time.temporal.TemporalField field) { throw new RuntimeException("Stub!"); }
102
getLong(java.time.temporal.TemporalField field)103 public long getLong(java.time.temporal.TemporalField field) { throw new RuntimeException("Stub!"); }
104
getChronology()105 public java.time.chrono.IsoChronology getChronology() { throw new RuntimeException("Stub!"); }
106
getEra()107 public java.time.chrono.Era getEra() { throw new RuntimeException("Stub!"); }
108
getYear()109 public int getYear() { throw new RuntimeException("Stub!"); }
110
getMonthValue()111 public int getMonthValue() { throw new RuntimeException("Stub!"); }
112
getMonth()113 public java.time.Month getMonth() { throw new RuntimeException("Stub!"); }
114
getDayOfMonth()115 public int getDayOfMonth() { throw new RuntimeException("Stub!"); }
116
getDayOfYear()117 public int getDayOfYear() { throw new RuntimeException("Stub!"); }
118
getDayOfWeek()119 public java.time.DayOfWeek getDayOfWeek() { throw new RuntimeException("Stub!"); }
120
isLeapYear()121 public boolean isLeapYear() { throw new RuntimeException("Stub!"); }
122
lengthOfMonth()123 public int lengthOfMonth() { throw new RuntimeException("Stub!"); }
124
lengthOfYear()125 public int lengthOfYear() { throw new RuntimeException("Stub!"); }
126
with(java.time.temporal.TemporalAdjuster adjuster)127 public java.time.LocalDate with(java.time.temporal.TemporalAdjuster adjuster) { throw new RuntimeException("Stub!"); }
128
with(java.time.temporal.TemporalField field, long newValue)129 public java.time.LocalDate with(java.time.temporal.TemporalField field, long newValue) { throw new RuntimeException("Stub!"); }
130
withYear(int year)131 public java.time.LocalDate withYear(int year) { throw new RuntimeException("Stub!"); }
132
withMonth(int month)133 public java.time.LocalDate withMonth(int month) { throw new RuntimeException("Stub!"); }
134
withDayOfMonth(int dayOfMonth)135 public java.time.LocalDate withDayOfMonth(int dayOfMonth) { throw new RuntimeException("Stub!"); }
136
withDayOfYear(int dayOfYear)137 public java.time.LocalDate withDayOfYear(int dayOfYear) { throw new RuntimeException("Stub!"); }
138
plus(java.time.temporal.TemporalAmount amountToAdd)139 public java.time.LocalDate plus(java.time.temporal.TemporalAmount amountToAdd) { throw new RuntimeException("Stub!"); }
140
plus(long amountToAdd, java.time.temporal.TemporalUnit unit)141 public java.time.LocalDate plus(long amountToAdd, java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
142
plusYears(long yearsToAdd)143 public java.time.LocalDate plusYears(long yearsToAdd) { throw new RuntimeException("Stub!"); }
144
plusMonths(long monthsToAdd)145 public java.time.LocalDate plusMonths(long monthsToAdd) { throw new RuntimeException("Stub!"); }
146
plusWeeks(long weeksToAdd)147 public java.time.LocalDate plusWeeks(long weeksToAdd) { throw new RuntimeException("Stub!"); }
148
plusDays(long daysToAdd)149 public java.time.LocalDate plusDays(long daysToAdd) { throw new RuntimeException("Stub!"); }
150
minus(java.time.temporal.TemporalAmount amountToSubtract)151 public java.time.LocalDate minus(java.time.temporal.TemporalAmount amountToSubtract) { throw new RuntimeException("Stub!"); }
152
minus(long amountToSubtract, java.time.temporal.TemporalUnit unit)153 public java.time.LocalDate minus(long amountToSubtract, java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
154
minusYears(long yearsToSubtract)155 public java.time.LocalDate minusYears(long yearsToSubtract) { throw new RuntimeException("Stub!"); }
156
minusMonths(long monthsToSubtract)157 public java.time.LocalDate minusMonths(long monthsToSubtract) { throw new RuntimeException("Stub!"); }
158
minusWeeks(long weeksToSubtract)159 public java.time.LocalDate minusWeeks(long weeksToSubtract) { throw new RuntimeException("Stub!"); }
160
minusDays(long daysToSubtract)161 public java.time.LocalDate minusDays(long daysToSubtract) { throw new RuntimeException("Stub!"); }
162
query(java.time.temporal.TemporalQuery<R> query)163 public <R> R query(java.time.temporal.TemporalQuery<R> query) { throw new RuntimeException("Stub!"); }
164
adjustInto(java.time.temporal.Temporal temporal)165 public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal temporal) { throw new RuntimeException("Stub!"); }
166
until(java.time.temporal.Temporal endExclusive, java.time.temporal.TemporalUnit unit)167 public long until(java.time.temporal.Temporal endExclusive, java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
168
until(java.time.chrono.ChronoLocalDate endDateExclusive)169 public java.time.Period until(java.time.chrono.ChronoLocalDate endDateExclusive) { throw new RuntimeException("Stub!"); }
170
171 @Hide
datesUntil(java.time.LocalDate endExclusive)172 public java.util.stream.Stream<java.time.LocalDate> datesUntil(java.time.LocalDate endExclusive) { throw new RuntimeException("Stub!"); }
173
174 @Hide
datesUntil(java.time.LocalDate endExclusive, java.time.Period step)175 public java.util.stream.Stream<java.time.LocalDate> datesUntil(java.time.LocalDate endExclusive, java.time.Period step) { throw new RuntimeException("Stub!"); }
176
format(java.time.format.DateTimeFormatter formatter)177 public java.lang.String format(java.time.format.DateTimeFormatter formatter) { throw new RuntimeException("Stub!"); }
178
atTime(java.time.LocalTime time)179 public java.time.LocalDateTime atTime(java.time.LocalTime time) { throw new RuntimeException("Stub!"); }
180
atTime(int hour, int minute)181 public java.time.LocalDateTime atTime(int hour, int minute) { throw new RuntimeException("Stub!"); }
182
atTime(int hour, int minute, int second)183 public java.time.LocalDateTime atTime(int hour, int minute, int second) { throw new RuntimeException("Stub!"); }
184
atTime(int hour, int minute, int second, int nanoOfSecond)185 public java.time.LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) { throw new RuntimeException("Stub!"); }
186
atTime(java.time.OffsetTime time)187 public java.time.OffsetDateTime atTime(java.time.OffsetTime time) { throw new RuntimeException("Stub!"); }
188
atStartOfDay()189 public java.time.LocalDateTime atStartOfDay() { throw new RuntimeException("Stub!"); }
190
atStartOfDay(java.time.ZoneId zone)191 public java.time.ZonedDateTime atStartOfDay(java.time.ZoneId zone) { throw new RuntimeException("Stub!"); }
192
toEpochDay()193 public long toEpochDay() { throw new RuntimeException("Stub!"); }
194
195 @Hide
toEpochSecond(java.time.LocalTime time, java.time.ZoneOffset offset)196 public long toEpochSecond(java.time.LocalTime time, java.time.ZoneOffset offset) { throw new RuntimeException("Stub!"); }
197
compareTo(java.time.chrono.ChronoLocalDate other)198 public int compareTo(java.time.chrono.ChronoLocalDate other) { throw new RuntimeException("Stub!"); }
199
isAfter(java.time.chrono.ChronoLocalDate other)200 public boolean isAfter(java.time.chrono.ChronoLocalDate other) { throw new RuntimeException("Stub!"); }
201
isBefore(java.time.chrono.ChronoLocalDate other)202 public boolean isBefore(java.time.chrono.ChronoLocalDate other) { throw new RuntimeException("Stub!"); }
203
isEqual(java.time.chrono.ChronoLocalDate other)204 public boolean isEqual(java.time.chrono.ChronoLocalDate other) { throw new RuntimeException("Stub!"); }
205
equals(java.lang.Object obj)206 public boolean equals(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
207
hashCode()208 public int hashCode() { throw new RuntimeException("Stub!"); }
209
toString()210 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
211
212 @Hide
213 public static final java.time.LocalDate EPOCH;
214 static { EPOCH = null; }
215
216 public static final java.time.LocalDate MAX;
217 static { MAX = null; }
218
219 public static final java.time.LocalDate MIN;
220 static { MIN = null; }
221 }
222
223