TimeValue implements CellValue { @Override public String toString() { return "TimeValue[" + (this.neg ? "-P" : "P") + this.years + "Y" + this.months + "M" + this.days + "DT" + this.hours + "H" + this.minutes + "M" + this.seconds + "S" + "]"; } TimeValue(final boolean neg, final long years, final long months, final long days,
                     final long hours, final long minutes, final double seconds); static TimeValue from(final Object o); @Override boolean equals(final Object o); @Override final int hashCode(); @Override void setToCell(final TableCell tableCell); @Override String toString();  }
@Test public void testToString() { final TimeValue tv1 = new TimeValue(false, 0, 0, 1, 2, 3, 4); Assert.assertEquals("TimeValue[P0Y0M1DT2H3M4.0S]", tv1.toString()); }