Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
53 | 2 | 3 | 0.988 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 53 | 521 | src/NHibernate/Util/SequencedHashMap.cs |
2 | 53 | 573 | src/NHibernate/Util/SequencedHashMap.cs |
| ||||
#endregion private class KeyCollection : ICollection { private SequencedHashMap _parent; public KeyCollection(SequencedHashMap parent) { _parent = parent; } #region System.Collections.ICollection Members public int Count { get { return _parent.Count; } } public bool IsSynchronized { get { return false; } } public object SyncRoot { get { return this ; } } public void CopyTo(Array array, int index) { foreach (object obj in this ) { array.SetValue(obj, index++); } } #endregion #region System.Collections.IEnumerable Members public IEnumerator GetEnumerator() { return new OrderedEnumerator(_parent, ReturnType.ReturnKey); } #endregion public bool Contains(object o) { return _parent.ContainsKey(o); } } |
| ||||
private class ValuesCollection : ICollection { private SequencedHashMap _parent; public ValuesCollection(SequencedHashMap parent) { _parent = parent; } #region System.Collections.ICollection Members public int Count { get { return _parent.Count; } } public bool IsSynchronized { get { return false; } } public object SyncRoot { get { return this ; } } public void CopyTo(Array array, int index) { foreach (object obj in this ) { array.SetValue(obj, index++); } } #endregion #region System.Collections.IEnumerable Members public IEnumerator GetEnumerator() { return new OrderedEnumerator(_parent, ReturnType.ReturnValue); } #endregion public bool Contains(object o) { return _parent.ContainsValue(o); } } |
| |||
#endregion private class [[#variable5e435c80]]: ICollection { private SequencedHashMap _parent; public [[#variable5e435c80]](SequencedHashMap parent) { _parent = parent; } #region System.Collections.ICollection Members public int Count { get { return _parent.Count; } } public bool IsSynchronized { get { return false; } } public object SyncRoot { get { return this ; } } public void CopyTo(Array array, int index) { foreach (object obj in this ) { array.SetValue(obj, index++); } } #endregion #region System.Collections.IEnumerable Members public IEnumerator GetEnumerator() { return new OrderedEnumerator(_parent, ReturnType. [[#variable5e435b80]]); } #endregion public bool Contains(object o) { return _parent. [[#variable5e435ae0]](o); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5e435c80]] | KeyCollection |
1 | 2 | [[#5e435c80]] | ValuesCollection |
2 | 1 | [[#5e435b80]] | ReturnKey |
2 | 2 | [[#5e435b80]] | ReturnValue |
3 | 1 | [[#5e435ae0]] | ContainsKey |
3 | 2 | [[#5e435ae0]] | ContainsValue |