CloneSet566


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15340.957class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115226
src/NHibernate/Collection/PersistentList.cs
215200
src/NHibernate/Collection/PersistentMap.cs
315373
src/NHibernate/Collection/PersistentSet.cs
Clone Instance
1
Line Count
15
Source Line
226
Source File
src/NHibernate/Collection/PersistentList.cs

                public override bool Equals(object obj)
                {
                        ICollection that = obj as ICollection;
                        if (that == null)
                        {
                                return false;
                        }
                        Read();
                        return CollectionHelper.CollectionEquals(list, that);
                }

                public override int GetHashCode()
                {
                        Read();
                        return list.GetHashCode();
                }



Clone Instance
2
Line Count
15
Source Line
200
Source File
src/NHibernate/Collection/PersistentMap.cs

                public override bool Equals(object other)
                {
                        IDictionary that = other as IDictionary;
                        if (that == null)
                        {
                                return false;
                        }
                        Read();
                        return CollectionHelper.DictionaryEquals(map, that);
                }

                public override int GetHashCode()
                {
                        Read();
                        return map.GetHashCode();
                }



Clone Instance
3
Line Count
15
Source Line
373
Source File
src/NHibernate/Collection/PersistentSet.cs

                public override bool Equals(object other)
                {
                        ICollection that = other as ICollection;
                        if (that == null)
                        {
                                return false;
                        }
                        Read();
                        return CollectionHelper.CollectionEquals(set, that);
                }

                public override int GetHashCode()
                {
                        Read();
                        return set.GetHashCode();
                }



Clone AbstractionParameter Count: 4Parameter Bindings

public override bool Equals(object [[#variable70a96e60]])
{
    [[#variable70bb5440]]that = [[#variable70a96e60]]as [[#variable70bb5440]];
   if (that == null)
   {
      return false;
   }
   Read();
   return CollectionHelper. [[#variable6fcfe520]]( [[#variable70a96e40]], that);
}

public override int GetHashCode()
{
   Read();
   return [[#variable70a96e40]].GetHashCode();
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70a96e60]]
obj 
12[[#70a96e60]]
other 
13[[#70a96e60]]
other 
21[[#70bb5440]]
ICollection 
22[[#70bb5440]]
IDictionary 
23[[#70bb5440]]
ICollection 
31[[#6fcfe520]]
CollectionEquals 
32[[#6fcfe520]]
DictionaryEquals 
33[[#6fcfe520]]
CollectionEquals 
41[[#70a96e40]]
list 
42[[#70a96e40]]
map 
43[[#70a96e40]]
set