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