private void writeObject (ObjectOutputStream s)
        throws IOException
    {
        // write out number of buckets
        s.writeInt(_buckets.length);
        s.writeFloat(_loadFactor);

        // write out size (number of mappings)
        s.writeInt(_size);

        // write out keys and values
        for (IntEntry<V> entry : intEntrySet()) {
            s.writeInt(entry.getIntKey());
            s.writeObject(entry.getValue());
        }
    }
private void writeObject ( ObjectOutputStream s ) throws IOException { s . writeInt ( _buckets . length ) ; s . writeFloat ( _loadFactor ) ; s . writeInt ( _size ) ; for ( IntEntry < V > entry : intEntrySet ( ) ) { s . writeInt ( entry . getIntKey ( ) ) ; s . writeObject ( entry . getValue ( ) ) ; } }
Save the state of this instance to a stream (i.e., serialize it).