@Test public void convertingToSqlTimestamp() { PreciseTimestamp timestamp = create(LocalDate.of(1985, 6, 3), LocalTime.of(12, 30, 50, 123_456_789)); assertThat(timestamp.toSqlTimestamp()).isEqualTo(asSqlTimestamp(LocalDate.of(1985, 6, 3), LocalTime.of(12, 30, 50, 123_456_789))); }
@Override public java.sql.Timestamp toSqlTimestamp() { return java.sql.Timestamp.from(instant); }
PreciseTimestamp implements Timestamp { @Override public java.sql.Timestamp toSqlTimestamp() { return java.sql.Timestamp.from(instant); } }
PreciseTimestamp implements Timestamp { @Override public java.sql.Timestamp toSqlTimestamp() { return java.sql.Timestamp.from(instant); } PreciseTimestamp();  PreciseTimestamp(final long milliseconds, final long nanoseconds); }
PreciseTimestamp implements Timestamp { @Override public java.sql.Timestamp toSqlTimestamp() { return java.sql.Timestamp.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 java.sql.Timestamp toSqlTimestamp() { return java.sql.Timestamp.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);  }