code: public void writeObject (ObjectOutputStream out)
          throws IOException
      {
          out.writeInt(size());
          for (E value : this) {
              out.writeObject(value);
          }
      }
docs: Writes our custom streamable fields.