Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
42 | 2 | 2 | 0.959 | class_member_declarations[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 42 | 62 | src/Iesi.Collections/Generic/ImmutableSet.cs |
2 | 42 | 58 | src/Iesi.Collections/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); } |
| ||||
/// <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); } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#289da7c0]] | T |
1 | 2 | [[#289da7c0]] | object |
2 | 1 | [[#50896da0]] | ICollection<T> |
2 | 2 | [[#50896da0]] | ICollection |