@SuppressWarnings("unchecked")
	private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
        // Read in array length and allocate array
        size = ois.readInt();
        values = (E[]) new Object[size];

        // Read in all elements in the proper order.
        for (int i=0; i<size; i++) {
            values[i] = (E) ois.readObject();
        }
    }
Deserialize a GapList object.

@param ois  input stream for serialization
@throws 	   IOException if serialization fails
@throws 	   ClassNotFoundException if serialization fails
jphp-runtime/src/php/runtime/memory/support/GapList.java