CloneSet427


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27210.987class_member_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127345
src/NHibernate/Collection/PersistentBag.cs
227262
src/NHibernate/Collection/PersistentList.cs
Clone Instance
1
Line Count
27
Source Line
345
Source File
src/NHibernate/Collection/PersistentBag.cs

                public bool Contains(object value)
                {
                        bool ? exists = ReadElementExistence(value);
                        return !exists.HasValue ? bag.Contains(value):  exists.Value;
                }

                public void Clear()
                {
                        if (ClearQueueEnabled)
                        {
                                QueueOperation(new ClearDelayedOperation(this ));
                        }
                        else
                        {
                                Initialize(true);
                                if ( !(bag.Count == 0))
                                {
                                        bag.Clear();
                                        Dirty();
                                }
                        }
                }

                public int IndexOf(object value)
                {
                        Read();
                        return bag.IndexOf(value);
                }



Clone Instance
2
Line Count
27
Source Line
262
Source File
src/NHibernate/Collection/PersistentList.cs

                public bool Contains(object value)
                {
                        bool ? exists = ReadElementExistence(value);
                        return !exists.HasValue ? list.Contains(value):  exists.Value;
                }

                public void Clear()
                {
                        if (ClearQueueEnabled)
                        {
                                QueueOperation(new ClearDelayedOperation(this ));
                        }
                        else
                        {
                                Initialize(true);
                                if ( !(list.Count == 0))
                                {
                                        list.Clear();
                                        Dirty();
                                }
                        }
                }

                public int IndexOf(object value)
                {
                        Read();
                        return list.IndexOf(value);
                }



Clone AbstractionParameter Count: 1Parameter Bindings

public bool Contains(object value)
{
   bool ? exists = ReadElementExistence(value);
   return !exists.HasValue ?
           [[#variable2cd09e00]].Contains(value): exists.Value;
}

public void Clear()
{
   if (ClearQueueEnabled)
   {
      QueueOperation(new ClearDelayedOperation(this ));
   }
   else
   {
      Initialize(true);
      if ( !( [[#variable2cd09e00]].Count == 0))
      {
          [[#variable2cd09e00]].Clear();
         Dirty();
      }
   }
}

public int IndexOf(object value)
{
   Read();
   return [[#variable2cd09e00]].IndexOf(value);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2cd09e00]]
list 
12[[#2cd09e00]]
bag