Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 2 | 3 | 0.972 | namespace_member_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 4 | src/NHibernate/Type/OrderedMapType.cs |
2 | 26 | 4 | src/NHibernate/Type/OrderedSetType.cs |
| ||||
namespace NHibernate.Type { /// <summary> /// A <see cref="MapType" /> implemented using a collection that maintains /// the order in which elements are inserted into it. /// </summary> [Serializable] public class OrderedMapType : MapType { /// <summary> /// Initializes a new instance of a <see cref="OrderedMapType"/> class. /// </summary> /// <param name="role">The role the persistent collection is in.</param> /// <param name="propertyRef"></param> /// <param name="isEmbeddedInXML"></param> public OrderedMapType(string role, string propertyRef, bool isEmbeddedInXML) : base(role, propertyRef, isEmbeddedInXML) { } public override object Instantiate(int anticipatedSize) { return new ListDictionary(); } } } |
| ||||
namespace NHibernate.Type { /// <summary> /// A <see cref="SetType" /> implemented using a collection that maintains /// the order in which elements are inserted into it. /// </summary> [Serializable] public class OrderedSetType : SetType { /// <summary> /// Initializes a new instance of a <see cref="OrderedSetType"/> class /// </summary> /// <param name="role">The role the persistent collection is in.</param> /// <param name="propertyRef"></param> /// <param name="isEmbeddedInXML"></param> public OrderedSetType(string role, string propertyRef, bool isEmbeddedInXML) : base(role, propertyRef, isEmbeddedInXML) { } public override object Instantiate(int anticipatedSize) { return new ListSet(); } } } |
| |||
namespace NHibernate.Type { /// <summary> /// A <see cref="MapType" /> implemented using a collection that maintains /// A <see cref="SetType" /> implemented using a collection that maintains /// the order in which elements are inserted into it. /// </summary> [Serializable] public class [[#variable554588e0]]: [[#variable554588c0]] { /// <summary> /// Initializes a new instance of a <see cref="OrderedMapType"/> class. /// Initializes a new instance of a <see cref="OrderedSetType"/> class /// </summary> /// <param name="role">The role the persistent collection is in.</param> /// <param name="propertyRef"></param> /// <param name="isEmbeddedInXML"></param> public [[#variable554588e0]](string role, string propertyRef, bool isEmbeddedInXML): base(role, propertyRef, isEmbeddedInXML) { } public override object Instantiate(int anticipatedSize) { return new [[#variable55458880]](); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#554588e0]] | OrderedMapType |
1 | 2 | [[#554588e0]] | OrderedSetType |
2 | 1 | [[#554588c0]] | MapType |
2 | 2 | [[#554588c0]] | SetType |
3 | 1 | [[#55458880]] | ListDictionary |
3 | 2 | [[#55458880]] | ListSet |