Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.977 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 159 | src/Iesi.Collections/Generic/Set.cs |
2 | 3 | 206 | src/Iesi.Collections/Generic/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 only if it exists in /// both <c>a</c> and <c>b</c>. Neither input object is modified by the operation. /// The result object is a <c>Clone()</c> of one of the input objects (<c>a</c> if it is not <see langword="null" />) containing the /// elements from the intersect operation. /// </summary> /// <param name="a">A set of elements.</param> /// <param name="b">A set of elements.</param> /// <returns>The intersection of the two input sets. <see langword="null" /> if both sets are <see langword="null" />.</returns> public static Set<T> operator & (Set<T> a, Set<T> b) { return (Set<T> )Intersect(a, b); } |
| ||||
/// <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 set <c>a</c> containing the elements from the operation. /// </summary> /// <param name="a">A set of elements.</param> /// <param name="b">A set of elements.</param> /// <returns>A set containing <c>A - B</c> elements. <see langword="null" /> if <c>a</c> is <see langword="null" />.</returns> public static Set<T> operator - (Set<T> a, Set<T> b) { return (Set<T> )Minus(a, b); } |
| |||
/// <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 set <c>a</c> containing the elements from the operation. /// Performs an "intersection" of the two sets, where only the elements /// that are present in both sets remain. That is, the element is included only if it exists in /// both <c>a</c> and <c>b</c>. Neither input object is modified by the operation. /// The result object is a <c>Clone()</c> of one of the input objects (<c>a</c> if it is not <see langword="null" />) containing the /// elements from the intersect operation. /// </summary> /// <param name="a">A set of elements.</param> /// <param name="b">A set of elements.</param> /// <returns>A set containing <c>A - B</c> elements. <see langword="null" /> if <c>a</c> is <see langword="null" />.</returns> /// <returns>The intersection of the two input sets. <see langword="null" /> if both sets are <see langword="null" />.</returns> public static Set<T> operator [[#variable6fa56b20]](Set<T> a, Set<T> b) { return (Set<T> ) [[#variable6fa56b40]](a, b); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fa56b20]] | - |
1 | 2 | [[#6fa56b20]] | & |
2 | 1 | [[#6fa56b40]] | Minus |
2 | 2 | [[#6fa56b40]] | Intersect |