1 package org.collectionspace.services.structureddate;
5 * A deferred date that represents the end of a century. The end year
6 * can not be determined until the era of the century is known. Once the
7 * era is known, resolveDate() may be called to calculate the year.
9 public class DeferredCenturyEndDate extends DeferredCenturyDate {
11 public DeferredCenturyEndDate(int century) {
16 public void resolveDate() {
20 era = Date.DEFAULT_ERA;
23 Date endDate = DateUtils.getCenturyEndDate(century, era);
25 setYear(endDate.getYear());
26 setMonth(endDate.getMonth());
27 setDay(endDate.getDay());
28 setEra(endDate.getEra());