Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 2 | 0.954 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 71 | src/Iesi.Collections/DictionarySet.cs |
2 | 6 | 140 | src/Iesi.Collections/DictionarySet.cs |
3 | 8 | 28 | src/NHibernate/Util/IdentitySet.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 c) { bool changed = false; foreach (object 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 c) { bool changed = false; foreach (object o in c) changed |= this.Remove(o); return changed; } |
| ||||
public override bool AddAll(ICollection c) { bool changed = false; foreach (object o in c) changed |= Add(o); return changed; } |
| |||
/// <summary> /// Adds all the elements in the specified collection to the set if they are not already present. /// Remove all the specified elements from this set, if they exist in this set. /// </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> /// <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 [[#variable5f4f1620]](ICollection c) { bool changed = false; foreach (object o in c) changed |= [[#variable5f4f1600]](o); return changed; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f4f1620]] | AddAll |
1 | 2 | [[#5f4f1620]] | AddAll |
1 | 3 | [[#5f4f1620]] | RemoveAll |
2 | 1 | [[#5f4f1600]] | Add |
2 | 2 | [[#5f4f1600]] | this.Add |
2 | 3 | [[#5f4f1600]] | this.Remove |