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.974 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 54 | src/NHibernate/Type/IdentifierBagType.cs |
2 | 3 | 61 | src/NHibernate/Type/MapType.cs |
| ||||
/// <summary> /// Wraps an <see cref="IList"/> in a <see cref="PersistentIdentifierBag"/>. /// </summary> /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> /// <param name="collection">The unwrapped <see cref="IList"/>.</param> /// <returns> /// An <see cref="PersistentIdentifierBag"/> that wraps the non NHibernate <see cref="IList"/>. /// </returns> public override IPersistentCollection Wrap(ISessionImplementor session, object collection) { return new PersistentIdentifierBag(session, (ICollection) collection); } |
| ||||
/// <summary> /// Wraps an <see cref="IDictionary"/> in a <see cref="PersistentMap"/>. /// </summary> /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> /// <param name="collection">The unwrapped <see cref="IDictionary"/>.</param> /// <returns> /// An <see cref="PersistentMap"/> that wraps the non NHibernate <see cref="IDictionary"/>. /// </returns> public override IPersistentCollection Wrap(ISessionImplementor session, object collection) { return new PersistentMap(session, (IDictionary) collection); } |
| |||
/// <summary> /// Wraps an <see cref="IList"/> in a <see cref="PersistentIdentifierBag"/>. /// Wraps an <see cref="IDictionary"/> in a <see cref="PersistentMap"/>. /// </summary> /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> /// <param name="collection">The unwrapped <see cref="IList"/>.</param> /// <param name="collection">The unwrapped <see cref="IDictionary"/>.</param> /// <returns> /// An <see cref="PersistentIdentifierBag"/> that wraps the non NHibernate <see cref="IList"/>. /// An <see cref="PersistentMap"/> that wraps the non NHibernate <see cref="IDictionary"/>. /// </returns> public override IPersistentCollection Wrap(ISessionImplementor session, object collection) { return new [[#variable5848d840]](session, ( [[#variable5848d7a0]])collection); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5848d840]] | PersistentIdentifierBag |
1 | 2 | [[#5848d840]] | PersistentMap |
2 | 1 | [[#5848d7a0]] | ICollection |
2 | 2 | [[#5848d7a0]] | IDictionary |