1 package org.collectionspace.services.structureddate;
5 * A deferred date that represents the end of a partial 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 DeferredPartialCenturyEndDate extends DeferredPartialCenturyDate {
11 public DeferredPartialCenturyEndDate(int century, Part part) {
16 public void resolveDate() {
20 era = Date.DEFAULT_ERA;
23 Date startDate = DateUtils.getPartialCenturyEndDate(century, part, era);
25 setYear(startDate.getYear());
26 setMonth(startDate.getMonth());
27 setDay(startDate.getDay());
28 setEra(startDate.getEra());