CloneSet622


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
42220.959class_member_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14262
src/Iesi.Collections/Generic/ImmutableSet.cs
24258
src/Iesi.Collections/ImmutableSet.cs
Clone Instance
1
Line Count
42
Source Line
62
Source File
src/Iesi.Collections/Generic/ImmutableSet.cs

                /// <summary>
                /// Removes all objects from the set.
                /// </summary>
                /// <exception cref="NotSupportedException"> is always thrown</exception>
                public override sealed void Clear()
                {
                        throw new NotSupportedException(ERROR_MESSAGE);
                }

                /// <summary>
                /// Returns <see langword="true" /> if this set contains the specified element.
                /// </summary>
                /// <param name="o">The element to look for.</param>
                /// <returns><see langword="true" /> if this set contains the specified element, <see langword="false" /> otherwise.</returns>
                public override sealed bool Contains(T o)
                {
                        return mBasisSet.Contains(o);
                }

                /// <summary>
                /// Returns <see langword="true" /> if the set contains all the elements in the specified collection.
                /// </summary>
                /// <param name="c">A collection of objects.</param>
                /// <returns><see langword="true" /> if the set contains all the elements in the specified collection, <see langword="false" /> otherwise.</returns>
                public override sealed bool ContainsAll(ICollection<T> c)
                {
                        return mBasisSet.ContainsAll(c);
                }

                /// <summary>
                /// Returns <see langword="true" /> if this set contains no elements.
                /// </summary>
                public override sealed bool IsEmpty
                {
                        get { return mBasisSet.IsEmpty;
                            }
                }

                /// <summary>
                /// Removes the specified element from the set.
                /// </summary>
                /// <param name="o">The element to be removed.</param>
                /// <returns>nothing</returns>
                /// <exception cref="NotSupportedException"> is always thrown</exception>
                public override sealed bool Remove(T o)
                {
                        throw new NotSupportedException(ERROR_MESSAGE);
                }



Clone Instance
2
Line Count
42
Source Line
58
Source File
src/Iesi.Collections/ImmutableSet.cs

                /// <summary>
                /// Removes all objects from the set.
                /// </summary>
                public override sealed void Clear()
                {
                        throw new NotSupportedException(ERROR_MESSAGE);
                }

                /// <summary>
                /// Returns <see langword="true" /> if this set contains the specified element.
                /// </summary>
                /// <param name="o">The element to look for.</param>
                /// <returns><see langword="true" /> if this set contains the specified element, <see langword="false" /> otherwise.</returns>
                public override sealed bool Contains(object o)
                {
                        return mBasisSet.Contains(o);
                }

                /// <summary>
                /// Returns <see langword="true" /> if the set contains all the elements in the specified collection.
                /// </summary>
                /// <param name="c">A collection of objects.</param>
                /// <returns><see langword="true" /> if the set contains all the elements in the specified collection, <see langword="false" /> otherwise.</returns>
                public override sealed bool ContainsAll(ICollection c)
                {
                        return mBasisSet.ContainsAll(c);
                }

                /// <summary>
                /// Returns <see langword="true" /> if this set contains no elements.
                /// </summary>
                public override sealed bool IsEmpty
                {
                        get { return mBasisSet.IsEmpty;
                            }
                }

                /// <summary>
                /// Removes the specified element from the set.
                /// </summary>
                /// <param name="o">The element to be removed.</param>
                /// <returns><see langword="true" /> if the set contained the specified element, <see langword="false" /> otherwise.</returns>
                public override sealed bool Remove(object o)
                {
                        throw new NotSupportedException(ERROR_MESSAGE);
                }



Clone AbstractionParameter Count: 2Parameter Bindings

/// <summary>
/// Removes all objects from the set.
/// </summary>
/// <exception cref="NotSupportedException"> is always thrown</exception>
public override sealed void Clear()
{
   throw new NotSupportedException(ERROR_MESSAGE);
}

/// <summary>
/// Returns <see langword="true" /> if this set contains the specified element.
/// </summary>
/// <param name="o">The element to look for.</param>
/// <returns><see langword="true" /> if this set contains the specified element, <see langword="false" /> otherwise.</returns>
public override sealed bool Contains( [[#variable289da7c0]]o)
{
   return mBasisSet.Contains(o);
}

/// <summary>
/// Returns <see langword="true" /> if the set contains all the elements in the specified collection.
/// </summary>
/// <param name="c">A collection of objects.</param>
/// <returns><see langword="true" /> if the set contains all the elements in the specified collection, <see langword="false" /> otherwise.</returns>
public override sealed bool ContainsAll( [[#variable50896da0]]c)
{
   return mBasisSet.ContainsAll(c);
}

/// <summary>
/// Returns <see langword="true" /> if this set contains no elements.
/// </summary>
public override sealed bool IsEmpty
{
   get
   {
      return mBasisSet.IsEmpty;
   }
}

/// <summary>
/// Removes the specified element from the set.
/// </summary>
/// <param name="o">The element to be removed.</param>
/// <returns>nothing</returns>
/// <exception cref="NotSupportedException"> is always thrown</exception>
/// <returns><see langword="true" /> if the set contained the specified element, <see langword="false" /> otherwise.</returns>
public override sealed bool Remove( [[#variable289da7c0]]o)
{
   throw new NotSupportedException(ERROR_MESSAGE);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#289da7c0]]
T 
12[[#289da7c0]]
object 
21[[#50896da0]]
ICollection<T> 
22[[#50896da0]]
ICollection