code: public void readObject (ObjectInputStream in)
          throws IOException, ClassNotFoundException
      {
          int ecount = in.readInt();
          ensureCapacity(ecount);
          for (int ii = 0; ii < ecount; ii++) {
              int key = in.readInt();
              put(key, in.readInt());
          }
      }
docs: Reads our custom streamable fields.