CloneSet465


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
32240.975class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
132508
src/NHibernate/Collection/PersistentList.cs
232438
src/NHibernate/Collection/PersistentMap.cs
Clone Instance
1
Line Count
32
Source Line
508
Source File
src/NHibernate/Collection/PersistentList.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;
                        }

                }



Clone Instance
2
Line Count
32
Source Line
438
Source File
src/NHibernate/Collection/PersistentMap.cs

                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;
                        }

                }



Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f4c5a60]]
PutDelayedOperation 
12[[#5f4c5a60]]
SetDelayedOperation 
21[[#5f4c59e0]]
PersistentMap 
22[[#5f4c59e0]]
PersistentList 
31[[#69761da0]]
object 
32[[#69761da0]]
int 
41[[#5f4c5980]]
map 
42[[#5f4c5980]]
list