8182838485868788
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(dataSet.size()); for (T element : dataSet){ serializer.serialize(element, new OutputViewObjectOutputStreamWrapper(out)); } }