code: public void readObject (ObjectInputStream in)
          throws IOException, ClassNotFoundException
      {
          int ecount = in.readInt();
          for (int ii = 0; ii < ecount; ii++) {
              @SuppressWarnings("unchecked") E value = (E)in.readObject();
              add(value);
          }
      }
docs: Reads our custom streamable fields.