Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.982 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 75 | src/Iesi.Collections/Generic/DictionarySet.cs |
2 | 8 | 148 | src/Iesi.Collections/Generic/DictionarySet.cs |
| ||||
/// <summary> /// Adds all the elements in the specified collection to the set if they are not already present. /// </summary> /// <param name="c">A collection of objects to add to the set.</param> /// <returns><see langword="true" /> is the set changed as a result of this operation, <see langword="false" /> if not.</returns> public override bool AddAll(ICollection<T> c) { bool changed = false; foreach (T o in c) { changed |= this.Add(o); } return changed; } |
| ||||
/// <summary> /// Remove all the specified elements from this set, if they exist in this set. /// </summary> /// <param name="c">A collection of elements to remove.</param> /// <returns><see langword="true" /> if the set was modified as a result of this operation.</returns> public override bool RemoveAll(ICollection<T> c) { bool changed = false; foreach (T o in c) { changed |= this.Remove(o); } return changed; } |
| |||
/// <summary> /// Remove all the specified elements from this set, if they exist in this set. /// Adds all the elements in the specified collection to the set if they are not already present. /// </summary> /// <param name="c">A collection of elements to remove.</param> /// <returns><see langword="true" /> if the set was modified as a result of this operation.</returns> /// <param name="c">A collection of objects to add to the set.</param> /// <returns><see langword="true" /> is the set changed as a result of this operation, <see langword="false" /> if not.</returns> public override bool [[#variable28b06600]](ICollection<T> c) { bool changed = false; foreach (T o in c) { changed |= this. [[#variable284019e0]](o); } return changed; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28b06600]] | RemoveAll |
1 | 2 | [[#28b06600]] | AddAll |
2 | 1 | [[#284019e0]] | Remove |
2 | 2 | [[#284019e0]] | Add |