DateDatum extends Datum { @Override public int asInt4() { return encode(); } DateDatum(int value);  DateDatum(TimeMeta tm); TimeMeta toTimeMeta(); int getCenturyOfEra(); int getYear(); int getWeekyear(); int getMonthOfYear(); int getDayOfYear(); int getDayOfWeek(); int getISODayOfWeek(); int getWeekOfYear(); int getDayOfMonth(); @Override String toString(); @Override Datum plus(Datum datum); @Override Datum minus(Datum datum); @Override int asInt4(); @Override long asInt8(); @Override float asFloat4(); @Override double asFloat8(); @Override String asChars(); @Override int size(); @Override byte [] asByteArray(); @Override Datum equalsTo(Datum datum); @Override int compareTo(Datum datum); @Override boolean equals(Object obj); @Override int hashCode(); static final int SIZE; }
@Test public final void testAsInt4() { Datum d = DatumFactory.createDate(DATE); Datum copy = DatumFactory.createDate(d.asInt4()); assertEquals(d, copy); }
@Test public final void testInstance() { DateDatum d = DatumFactory.createDate(DATE); DateDatum copy = new DateDatum(d.asInt4()); assertEquals(d, copy); }