@Test public void testToBytes() { assertArrayEquals(new byte[]{80, 49, 48, 89, 53, 77, 50, 48, 68}, PeriodConverter.INSTANCE.toBytes(Period.of(10, 5, 20))); }
@Override public byte[] toBytes(Period value) { return value.toString().getBytes(utf8); }
PeriodConverter implements BytesConverter<Period> { @Override public byte[] toBytes(Period value) { return value.toString().getBytes(utf8); } }
PeriodConverter implements BytesConverter<Period> { @Override public byte[] toBytes(Period value) { return value.toString().getBytes(utf8); } PeriodConverter(); }
PeriodConverter implements BytesConverter<Period> { @Override public byte[] toBytes(Period value) { return value.toString().getBytes(utf8); } PeriodConverter(); @Override Period fromBytes(byte[] bytes); @Override byte[] toBytes(Period value); }
PeriodConverter implements BytesConverter<Period> { @Override public byte[] toBytes(Period value) { return value.toString().getBytes(utf8); } PeriodConverter(); @Override Period fromBytes(byte[] bytes); @Override byte[] toBytes(Period value); static final BytesConverter<Period> INSTANCE; }