@Override
 public void writePortable(PortableWriter out) throws IOException {
   out.writeUTF("key", key);
   out.writeUTF("stringVal", stringVal);
   out.writeDouble("doubleVal", doubleVal);
   out.writeLong("longVal", longVal);
   out.writeInt("intVal", intVal);
 }
Example #2
0
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeByte("b", b);
   writer.writeBoolean("bool", bool);
   writer.writeChar("c", c);
   writer.writeShort("s", s);
   writer.writeInt("i", i);
   writer.writeLong("l", l);
   writer.writeFloat("f", f);
   writer.writeDouble("d", d);
   writer.writeUTF("str", str);
 }