Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
28 | 2 | 2 | 0.989 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 28 | 1 | src/NHibernate/Type/GenericSortedDictionaryType.cs |
2 | 28 | 1 | src/NHibernate/Type/GenericSortedListType.cs |
| ||||
using System; using System.Collections.Generic; namespace NHibernate.Type { [Serializable] public class GenericSortedDictionaryType<TKey, TValue> : GenericMapType<TKey, TValue> { private readonly IComparer<TKey> comparer; public GenericSortedDictionaryType(string role, string propertyRef, IComparer<TKey> comparer) : base(role, propertyRef) { this.comparer = comparer; } public IComparer<TKey> Comparer { get { return comparer; } } public override object Instantiate(int anticipatedSize) { return new SortedDictionary<TKey, TValue> (comparer); } } } |
| ||||
using System; using System.Collections.Generic; namespace NHibernate.Type { [Serializable] public class GenericSortedListType<TKey, TValue> : GenericMapType<TKey, TValue> { private readonly IComparer<TKey> comparer; public GenericSortedListType(string role, string propertyRef, IComparer<TKey> comparer) : base(role, propertyRef) { this.comparer = comparer; } public IComparer<TKey> Comparer { get { return comparer; } } public override object Instantiate(int anticipatedSize) { return new SortedList<TKey, TValue> (comparer); } } } |
| |||
using System; using System.Collections.Generic; namespace NHibernate.Type { [Serializable] public class [[#variable66e9fc00]]<TKey, TValue>: GenericMapType<TKey, TValue> { private readonly IComparer<TKey> comparer; public [[#variable66e9fc00]](string role, string propertyRef, IComparer<TKey> comparer): base(role, propertyRef) { this.comparer = comparer; } public IComparer<TKey> Comparer { get { return comparer; } } public override object Instantiate(int anticipatedSize) { return new [[#variable54a622a0]]<TKey, TValue> (comparer); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#66e9fc00]] | GenericSortedDictionaryType |
1 | 2 | [[#66e9fc00]] | GenericSortedListType |
2 | 1 | [[#54a622a0]] | SortedDictionary |
2 | 2 | [[#54a622a0]] | SortedList |