public SegmentCommitInfo clone() {SegmentCommitInfo other = new SegmentCommitInfo(info, delCount, softDelCount, delGen, fieldInfosGen, docValuesGen);other.nextWriteDelGen = nextWriteDelGen;other.nextWriteFieldInfosGen = nextWriteFieldInfosGen;other.nextWriteDocValuesGen = nextWriteDocValuesGen;for (Entry<Integer,Set<String>> e : dvUpdatesFiles.entrySet()) {other.dvUpdatesFiles.put(e.getKey(), new HashSet<>(e.getValue()));}other.fieldInfosFiles.addAll(fieldInfosFiles);return other;}
public virtual object Clone(){SegmentCommitInfo other = new SegmentCommitInfo(Info, delCount, delGen, fieldInfosGen);other.nextWriteDelGen = nextWriteDelGen;other.nextWriteFieldInfosGen = nextWriteFieldInfosGen;foreach (KeyValuePair<long, ISet<string>> e in genUpdatesFiles){other.genUpdatesFiles[e.Key] = new JCG.HashSet<string>(e.Value);}return other;}