code: public void writeObject (ObjectOutputStream out)
          throws IOException
      {
          int ecount = size();
          out.writeInt(ecount);
          for (IntIntEntry entry : entrySet()) {
              out.writeInt(entry.getIntKey());
              out.writeInt(entry.getIntValue());
          }
      }
docs: Writes our custom streamable fields.