1 package org.collectionspace.services.structureddate;
4 * A deferred date that represents the end of a millennium. The end year
5 * can not be determined until the era of the millennium is known. Once the
6 * era is known, resolveDate() may be called to calculate the year.
8 public class DeferredMillenniumEndDate extends DeferredMillenniumDate {
10 public DeferredMillenniumEndDate(int millennium) {
15 public void resolveDate() {
19 era = Date.DEFAULT_ERA;
22 Date startDate = DateUtils.getMillenniumEndDate(millennium, era);
24 setYear(startDate.getYear());
25 setMonth(startDate.getMonth());
26 setDay(startDate.getDay());
27 setEra(startDate.getEra());