CloneSet719


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6430.971class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16412
src/Iesi.Collections/Generic/Set.cs
26425
src/Iesi.Collections/Generic/Set.cs
3669
src/Iesi.Collections/Set.cs
46175
src/Iesi.Collections/Set.cs
Clone Instance
1
Line Count
6
Source Line
412
Source File
src/Iesi.Collections/Generic/Set.cs

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



Clone Instance
2
Line Count
6
Source Line
425
Source File
src/Iesi.Collections/Generic/Set.cs

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



Clone Instance
3
Line Count
6
Source Line
69
Source File
src/Iesi.Collections/Set.cs

                /// <summary>
                /// Performs a "union" of the two sets, where all the elements
                /// in both sets are present.  That is, the element is included if it is in either <c>a</c> or <c>b</c>.
                /// Neither this set nor the input set are modified during the operation.  The return value
                /// is a clone of this set with the extra elements added in.
                /// </summary>
                /// <param name="a">A collection of elements.</param>
                /// <returns>A new <see cref="ISet" /> instance containing the union of this instance with the specified collection.
                /// Neither of the input objects is modified by the union.</returns>
                public virtual ISet Union(ISet a)
                {
                        ISet resultSet = (ISet) this.Clone();
                        if (a != null)
                                resultSet.AddAll(a);
                        return resultSet;
                }



Clone Instance
4
Line Count
6
Source Line
175
Source File
src/Iesi.Collections/Set.cs

                /// <summary>
                /// Performs a "minus" of set <c>b</c> from set <c>a</c>.  This returns a set of all
                /// the elements in set <c>a</c>, removing the elements that are also in set <c>b</c>.
                /// The original sets are not modified during this operation.  The result set is a <c>Clone()</c>
                /// of this <c>Set</c> containing the elements from the operation.
                /// </summary>
                /// <param name="a">A set of elements.</param>
                /// <returns>A set containing the elements from this set with the elements in <c>a</c> removed.</returns>
                public virtual ISet Minus(ISet a)
                {
                        ISet resultSet = (ISet) this.Clone();
                        if (a != null)
                                resultSet.RemoveAll(a);
                        return resultSet;
                }



Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable501d4120]]virtual ISet [[#variable501d40c0]](ISet a)
{
   ISet resultSet = (ISet)this.Clone();
   if (a != null)
      resultSet. [[#variable501d4040]](a);
   return resultSet;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#501d4120]]
/// <summary>
/// Performs Union when called trhough non-generic ISet interface
/// </summary>
/// <param name="a"></param>
/// <returns></returns>
protected 
12[[#501d4120]]
/// <summary>
/// Performs Minus when called trhough non-generic ISet interface
/// </summary>
/// <param name="a"></param>
/// <returns></returns>
protected 
13[[#501d4120]]
/// <summary>
/// Performs a "union" of the two sets, where all the elements
/// in both sets are present.  That is, the element is included if it is in either <c>a</c> or <c>b</c>.
/// Neither this set nor the input set are modified during the operation.  The return value
/// is a clone of this set with the extra elements added in.
/// </summary>
/// <param name="a">A collection of elements.</param>
/// <returns>A new <see cref="ISet" /> instance containing the union of this instance with the specified collection.
/// Neither of the input objects is modified by the union.</returns>
public 
14[[#501d4120]]
/// <summary>
/// Performs a "minus" of set <c>b</c> from set <c>a</c>.  This returns a set of all
/// the elements in set <c>a</c>, removing the elements that are also in set <c>b</c>.
/// The original sets are not modified during this operation.  The result set is a <c>Clone()</c>
/// of this <c>Set</c> containing the elements from the operation.
/// </summary>
/// <param name="a">A set of elements.</param>
/// <returns>A set containing the elements from this set with the elements in <c>a</c> removed.</returns>
public 
21[[#501d40c0]]
NonGenericUnion 
22[[#501d40c0]]
NonGenericMinus 
23[[#501d40c0]]
Union 
24[[#501d40c0]]
Minus 
31[[#501d4040]]
AddAll 
32[[#501d4040]]
RemoveAll 
33[[#501d4040]]
AddAll 
34[[#501d4040]]
RemoveAll