@Test public void testToBytes() { assertArrayEquals(new byte[]{64, 58}, LocalDateConverter.INSTANCE.toBytes(LocalDate.of(2015, 1, 7))); }
@Override public byte[] toBytes(LocalDate value) { return longConverter.toBytes(value.toEpochDay()); }
LocalDateConverter implements BytesConverter<LocalDate> { @Override public byte[] toBytes(LocalDate value) { return longConverter.toBytes(value.toEpochDay()); } }
LocalDateConverter implements BytesConverter<LocalDate> { @Override public byte[] toBytes(LocalDate value) { return longConverter.toBytes(value.toEpochDay()); } LocalDateConverter(BytesConverter<Long> longConverter); }
LocalDateConverter implements BytesConverter<LocalDate> { @Override public byte[] toBytes(LocalDate value) { return longConverter.toBytes(value.toEpochDay()); } LocalDateConverter(BytesConverter<Long> longConverter); @Override LocalDate fromBytes(byte[] bytes); @Override byte[] toBytes(LocalDate value); }
LocalDateConverter implements BytesConverter<LocalDate> { @Override public byte[] toBytes(LocalDate value) { return longConverter.toBytes(value.toEpochDay()); } LocalDateConverter(BytesConverter<Long> longConverter); @Override LocalDate fromBytes(byte[] bytes); @Override byte[] toBytes(LocalDate value); static final BytesConverter<LocalDate> INSTANCE; }