/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Julian calendar implementation.
*
* @author Masayoshi Okutsu
* @since 1.5
*/
};
protected Date() {
super();
}
super(zone);
}
throw new NullPointerException();
}
}
return this;
}
}
public int getNormalizedYear() {
return 1 - getYear();
}
return getYear();
}
// Use the year numbering ..., -2, -1, 0, 1, 2, ... for
// normalized years. This differs from "Calendrical
// Calculations" in which the numbering is ..., -2, -1, 1, 2,
// ...
if (year <= 0) {
} else {
}
}
if (n != null) {
}
}
}
}
JulianCalendar() {
}
return "julian";
}
}
}
}
}
return new Date();
}
}
/**
* @param jyear normalized Julian year
*/
// Look up the one year cache
if (isJan1) {
return cache.getCachedJan1();
}
}
long y = jyear;
if (y > 0) {
// CE years
} else {
// BCE years
}
if (month > 0) {
} else {
}
}
// If it's January 1, update the cache.
}
return days;
}
int year;
if (fd >= 0) {
} else {
}
}
if (month > 0) {
month /= 367;
} else {
}
jdate.setNormalized(true);
}
/**
* Returns the normalized Julian year number of the given fixed date.
*/
return year;
}
// TODO: should replace this with a faster calculation, such
// as cache table lookup
return getDayOfWeekFromFixedDate(fixedDate);
}
}
}