Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 3 | 4 | 0.957 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 226 | src/NHibernate/Collection/PersistentList.cs |
2 | 15 | 200 | src/NHibernate/Collection/PersistentMap.cs |
3 | 15 | 373 | src/NHibernate/Collection/PersistentSet.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(); } |
| ||||
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(); } |
| ||||
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(); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#70a96e60]] | obj |
1 | 2 | [[#70a96e60]] | other |
1 | 3 | [[#70a96e60]] | other |
2 | 1 | [[#70bb5440]] | ICollection |
2 | 2 | [[#70bb5440]] | IDictionary |
2 | 3 | [[#70bb5440]] | ICollection |
3 | 1 | [[#6fcfe520]] | CollectionEquals |
3 | 2 | [[#6fcfe520]] | DictionaryEquals |
3 | 3 | [[#6fcfe520]] | CollectionEquals |
4 | 1 | [[#70a96e40]] | list |
4 | 2 | [[#70a96e40]] | map |
4 | 3 | [[#70a96e40]] | set |