CloneSet1624


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.982class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18438
src/Iesi.Collections/Generic/Set.cs
28120
src/Iesi.Collections/Set.cs
Clone Instance
1
Line Count
8
Source Line
438
Source File
src/Iesi.Collections/Generic/Set.cs

                /// <summary>
                /// Performs Intersect when called trhough non-generic ISet interface
                /// </summary>
                /// <param name="a"></param>
                /// <returns></returns>
                protected virtual ISet NonGenericIntersect(ISet a)
                {
                        ISet resultSet = (ISet) this.Clone();
                        if (a != null)
                                resultSet.RetainAll(a);
                        else
                                resultSet.Clear();
                        return resultSet;
                }



Clone Instance
2
Line Count
8
Source Line
120
Source File
src/Iesi.Collections/Set.cs

                /// <summary>
                /// Performs an "intersection" of the two sets, where only the elements
                /// that are present in both sets remain.  That is, the element is included if it exists in
                /// both sets.  The <c>Intersect()</c> operation does not modify the input sets.  It returns
                /// a <c>Clone()</c> of this set with the appropriate elements removed.
                /// </summary>
                /// <param name="a">A set of elements.</param>
                /// <returns>The intersection of this set with <c>a</c>.</returns>
                public virtual ISet Intersect(ISet a)
                {
                        ISet resultSet = (ISet) this.Clone();
                        if (a != null)
                                resultSet.RetainAll(a);
                        else
                                resultSet.Clear();
                        return resultSet;
                }



Clone AbstractionParameter Count: 2Parameter Bindings

 [[#variable28f42f60]]virtual ISet [[#variable28db2060]](ISet a)
{
   ISet resultSet = (ISet)this.Clone();
   if (a != null)
      resultSet.RetainAll(a);
   else
      resultSet.Clear();
   return resultSet;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28f42f60]]
/// <summary>
/// Performs an "intersection" of the two sets, where only the elements
/// that are present in both sets remain.  That is, the element is included if it exists in
/// both sets.  The <c>Intersect()</c> operation does not modify the input sets.  It returns
/// a <c>Clone()</c> of this set with the appropriate elements removed.
/// </summary>
/// <param name="a">A set of elements.</param>
/// <returns>The intersection of this set with <c>a</c>.</returns>
public 
12[[#28f42f60]]
/// <summary>
/// Performs Intersect when called trhough non-generic ISet interface
/// </summary>
/// <param name="a"></param>
/// <returns></returns>
protected 
21[[#28db2060]]
Intersect 
22[[#28db2060]]
NonGenericIntersect