code: public void readObject (ObjectInputStream in)
          throws IOException, ClassNotFoundException
      {
          _size = in.readInt();
          // ensure our capacity is a power of 2 (for consistency)
          int capacity = INITIAL_CAPACITY;
          while (capacity < _size) {
              capacity <<= 1;
          }
          @SuppressWarnings("unchecked") E[] entries = (E[])new Entry[capacity];
          _entries = entries;
          for (int ii = 0; ii < _size; ii++) {
              @SuppressWarnings("unchecked") E entry = (E)in.readObject();
              _entries[ii] = entry;
          }
      }
docs: Custom reader method. @see Streamable.