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.970 | class_member_declaration |

Clone Abstraction | Parameter Bindings |

Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|

1 | 3 | 162 | src/Iesi.Collections/Set.cs |

2 | 3 | 209 | 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 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 operator & (Set a, Set b) { return (Set) 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 operator - (Set a, Set b) { return (Set) 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 operator [[#variable55ae6a60]](Set a, Set b) { return (Set) [[#variable55ae69c0]](a, b); } |

CloneAbstraction |

Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|

1 | 1 | [[#55ae6a60]] | - |

1 | 2 | [[#55ae6a60]] | & |

2 | 1 | [[#55ae69c0]] | Minus |

2 | 2 | [[#55ae69c0]] | Intersect |