private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {
    // Read in the threshold, loadfactor, and any hidden stuff
    s.defaultReadObject();

    // Read in number of buckets and allocate the bucket array;
    int numBuckets = s.readInt();
    table = new Entry[numBuckets];

    init(); // Give subclass a chance to do its thing.

    // Read in size (number of Mappings)
    int size = s.readInt();

    // Read the keys and values, and put the mappings in the IntHashMap
    for (int i = 0; i < size; i++) {
      Object key = s.readObject();
      int value = s.readInt();
      putForCreate(key, value);
    }
  }
Reconstitute the <tt>HashMap</tt> instance from a stream (i.e., deserialize it).
geode-core/src/main/java/org/apache/geode/cache/query/internal/ObjectIntHashMap.java