@Test public void convertingToDate() { PreciseTimestamp timestamp = create(LocalDate.of(1985, 6, 3), LocalTime.of(12, 30, 50, 123_456_789)); assertThat(timestamp.toDate()).isEqualTo(asDate(LocalDate.of(1985, 6, 3), LocalTime.of(12, 30, 50, 123_000_000))); }
@Override public Date toDate() { return Date.from(instant); }
PreciseTimestamp implements Timestamp { @Override public Date toDate() { return Date.from(instant); } }
PreciseTimestamp implements Timestamp { @Override public Date toDate() { return Date.from(instant); } PreciseTimestamp();  PreciseTimestamp(final long milliseconds, final long nanoseconds); }
PreciseTimestamp implements Timestamp { @Override public Date toDate() { return Date.from(instant); } PreciseTimestamp();  PreciseTimestamp(final long milliseconds, final long nanoseconds); @Override Date toDate(); @Override Instant toInstant(); @Override java.sql.Timestamp toSqlTimestamp(); @Override long calcDifferenceInNanoseconds(final Timestamp other); }
PreciseTimestamp implements Timestamp { @Override public Date toDate() { return Date.from(instant); } PreciseTimestamp();  PreciseTimestamp(final long milliseconds, final long nanoseconds); @Override Date toDate(); @Override Instant toInstant(); @Override java.sql.Timestamp toSqlTimestamp(); @Override long calcDifferenceInNanoseconds(final Timestamp other);  }