Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 4 | 0.963 | class_member_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 38 | src/NHibernate/Collection/Generic/PersistentGenericBag.cs |
2 | 20 | 41 | src/NHibernate/Collection/Generic/PersistentGenericIdentifierBag.cs |
| ||||
public PersistentGenericBag(ISessionImplementor session) : base(session) { } public PersistentGenericBag(ISessionImplementor session, ICollection<T> coll) : base(session, coll as ICollection) { gbag = coll as IList<T> ; if (gbag == null) { List<T> l = new List<T> (coll); gbag = l; bag = l; } } protected IList<T> InternalBag { get { return gbag; } set { gbag = value; bag = (IList) gbag; } } |
| ||||
public PersistentIdentifierBag(ISessionImplementor session) : base(session) { } public PersistentIdentifierBag(ISessionImplementor session, ICollection<T> coll) : base(session, coll as ICollection) { gvalues = coll as IList<T> ; if (gvalues == null) { List<T> l = new List<T> (coll); gvalues = l; values = l; } } protected IList<T> InternalValues { get { return gvalues; } set { gvalues = value; values = (IList) gvalues; } } |
| |||
public [[#variable6ffd6f00]](ISessionImplementor session): base(session) { } public [[#variable6ffd6f00]](ISessionImplementor session, ICollection<T> coll): base(session, coll as ICollection) { [[#variable6ffd6f20]]= coll as IList<T> ; if ( [[#variable6ffd6f20]]== null) { List<T> l = new List<T> (coll); [[#variable6ffd6f20]]= l; [[#variable6ffd6ee0]]= l; } } protected IList<T> [[#variable6ffd6ec0]] { get { return [[#variable6ffd6f20]]; } set { [[#variable6ffd6f20]]= value; [[#variable6ffd6ee0]]= (IList) [[#variable6ffd6f20]]; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6ffd6f00]] | PersistentIdentifierBag |
1 | 2 | [[#6ffd6f00]] | PersistentGenericBag |
2 | 1 | [[#6ffd6f20]] | gvalues |
2 | 2 | [[#6ffd6f20]] | gbag |
3 | 1 | [[#6ffd6ee0]] | values |
3 | 2 | [[#6ffd6ee0]] | bag |
4 | 1 | [[#6ffd6ec0]] | InternalValues |
4 | 2 | [[#6ffd6ec0]] | InternalBag |