@Test public void testToBytes() throws ParseException { assertArrayEquals(new byte[]{0, 0, 1, 74, -60, 13, 31, 80}, UtilDateConverter.INSTANCE.toBytes(date("2015-01-07 11:00:02"))); }
@Override public byte[] toBytes(Date value) { return longConverter.toBytes(value.getTime()); }
UtilDateConverter implements BytesConverter<Date> { @Override public byte[] toBytes(Date value) { return longConverter.toBytes(value.getTime()); } }
UtilDateConverter implements BytesConverter<Date> { @Override public byte[] toBytes(Date value) { return longConverter.toBytes(value.getTime()); } UtilDateConverter(BytesConverter<Long> longConverter); }
UtilDateConverter implements BytesConverter<Date> { @Override public byte[] toBytes(Date value) { return longConverter.toBytes(value.getTime()); } UtilDateConverter(BytesConverter<Long> longConverter); @Override Date fromBytes(byte[] bytes); @Override byte[] toBytes(Date value); }
UtilDateConverter implements BytesConverter<Date> { @Override public byte[] toBytes(Date value) { return longConverter.toBytes(value.getTime()); } UtilDateConverter(BytesConverter<Long> longConverter); @Override Date fromBytes(byte[] bytes); @Override byte[] toBytes(Date value); static final BytesConverter<Date> INSTANCE; }