Пример #1
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   out.writeByte(unit.id());
   out.writeSharedString(preTz.getID());
   out.writeSharedString(postTz.getID());
 }
Пример #2
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   out.writeByte(unit.id());
 }