code: 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];
          
          // 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++) {
              int key = s.readInt();
              V value = (V) s.readObject();
              put(key, value);
          }
      }
docs: Reconstitute the <tt>IntHashMap</tt> instance from a stream (i.e.,
  deserialize it).