@Test(groups = "transcode", dataProvider = "times") public void encodeStringValue(final ZonedDateTime date, final String fileTime) throws Exception { Assert.assertEquals(transcoder.encodeStringValue(date), fileTime); }
@Override public String encodeStringValue(final ZonedDateTime value) { return String.valueOf((value.toInstant().toEpochMilli() + ERA_OFFSET) * ONE_HUNDRED_NANOSECOND_INTERVAL); }
FileTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public String encodeStringValue(final ZonedDateTime value) { return String.valueOf((value.toInstant().toEpochMilli() + ERA_OFFSET) * ONE_HUNDRED_NANOSECOND_INTERVAL); } }
FileTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public String encodeStringValue(final ZonedDateTime value) { return String.valueOf((value.toInstant().toEpochMilli() + ERA_OFFSET) * ONE_HUNDRED_NANOSECOND_INTERVAL); }  }
FileTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public String encodeStringValue(final ZonedDateTime value) { return String.valueOf((value.toInstant().toEpochMilli() + ERA_OFFSET) * ONE_HUNDRED_NANOSECOND_INTERVAL); }  @Override ZonedDateTime decodeStringValue(final String value); @Override String encodeStringValue(final ZonedDateTime value); @Override Class<ZonedDateTime> getType(); }
FileTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public String encodeStringValue(final ZonedDateTime value) { return String.valueOf((value.toInstant().toEpochMilli() + ERA_OFFSET) * ONE_HUNDRED_NANOSECOND_INTERVAL); }  @Override ZonedDateTime decodeStringValue(final String value); @Override String encodeStringValue(final ZonedDateTime value); @Override Class<ZonedDateTime> getType();  }