@Override public void writeImpl(ByteQueue queue) { queue.push(year); queue.push(month.getId()); queue.push((byte) day); queue.push(dayOfWeek.getId()); }
// // Reading and writing // public Date(ByteQueue queue) { readTag(queue); year = queue.popU1B(); month = Month.valueOf(queue.pop()); day = queue.popU1B(); dayOfWeek = DayOfWeek.valueOf(queue.pop()); }