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