Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
32 | 2 | 4 | 0.975 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 32 | 508 | src/NHibernate/Collection/PersistentList.cs |
2 | 32 | 438 | src/NHibernate/Collection/PersistentMap.cs |
| ||||
protected sealed class SetDelayedOperation : IDelayedOperation { private readonly PersistentList enclosingInstance; private readonly int index; private readonly object value; private readonly object old; public SetDelayedOperation(PersistentList enclosingInstance, int index, object value, object old) { this.enclosingInstance = enclosingInstance; this.index = index; this.value = value; this.old = old; } public object AddedInstance { get { return value; } } public object Orphan { get { return old; } } public void Operate() { enclosingInstance.list[index] = value; } } |
| ||||
protected sealed class PutDelayedOperation : IDelayedOperation { private readonly PersistentMap enclosingInstance; private readonly object index; private readonly object value; private readonly object old; public PutDelayedOperation(PersistentMap enclosingInstance, object index, object value, object old) { this.enclosingInstance = enclosingInstance; this.index = index; this.value = value; this.old = old; } public object AddedInstance { get { return value; } } public object Orphan { get { return old; } } public void Operate() { enclosingInstance.map[index] = value; } } |
| |||
protected sealed class [[#variable5f4c5a60]]: IDelayedOperation { private readonly [[#variable5f4c59e0]]enclosingInstance; private readonly [[#variable69761da0]]index; private readonly object value; private readonly object old; public [[#variable5f4c5a60]]( [[#variable5f4c59e0]]enclosingInstance, [[#variable69761da0]]index, object value, object old) { this.enclosingInstance = enclosingInstance; this.index = index; this.value = value; this.old = old; } public object AddedInstance { get { return value; } } public object Orphan { get { return old; } } public void Operate() { enclosingInstance. [[#variable5f4c5980]][index] = value; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f4c5a60]] | PutDelayedOperation |
1 | 2 | [[#5f4c5a60]] | SetDelayedOperation |
2 | 1 | [[#5f4c59e0]] | PersistentMap |
2 | 2 | [[#5f4c59e0]] | PersistentList |
3 | 1 | [[#69761da0]] | object |
3 | 2 | [[#69761da0]] | int |
4 | 1 | [[#5f4c5980]] | map |
4 | 2 | [[#5f4c5980]] | list |