Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
27 | 2 | 1 | 0.987 | class_member_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 27 | 345 | src/NHibernate/Collection/PersistentBag.cs |
2 | 27 | 262 | src/NHibernate/Collection/PersistentList.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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2cd09e00]] | list |
1 | 2 | [[#2cd09e00]] | bag |