@Test public void testToBytes() { assertArrayEquals(new byte[]{0, 0, 36, 4, -113, 36, 116, 0}, LocalTimeConverter.INSTANCE.toBytes(LocalTime.of(11, 0, 2))); assertArrayEquals(new byte[]{0}, LocalTimeConverter.INSTANCE.toBytes(LocalTime.of(0, 0, 0))); }
@Override public byte[] toBytes(LocalTime value) { return longConverter.toBytes(value.toNanoOfDay()); }
LocalTimeConverter implements BytesConverter<LocalTime> { @Override public byte[] toBytes(LocalTime value) { return longConverter.toBytes(value.toNanoOfDay()); } }
LocalTimeConverter implements BytesConverter<LocalTime> { @Override public byte[] toBytes(LocalTime value) { return longConverter.toBytes(value.toNanoOfDay()); } LocalTimeConverter(BytesConverter<Long> longConverter); }
LocalTimeConverter implements BytesConverter<LocalTime> { @Override public byte[] toBytes(LocalTime value) { return longConverter.toBytes(value.toNanoOfDay()); } LocalTimeConverter(BytesConverter<Long> longConverter); @Override LocalTime fromBytes(byte[] bytes); @Override byte[] toBytes(LocalTime value); }
LocalTimeConverter implements BytesConverter<LocalTime> { @Override public byte[] toBytes(LocalTime value) { return longConverter.toBytes(value.toNanoOfDay()); } LocalTimeConverter(BytesConverter<Long> longConverter); @Override LocalTime fromBytes(byte[] bytes); @Override byte[] toBytes(LocalTime value); static final BytesConverter<LocalTime> INSTANCE; }