CloneSet303


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
47230.989class_member_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
147565
src/NHibernate/Util/LinkedHashMap.cs
247636
src/NHibernate/Util/LinkedHashMap.cs
Clone Instance
1
Line Count
47
Source Line
565
Source File
src/NHibernate/Util/LinkedHashMap.cs

                        protected readonly LinkedHashMap<TKey, TValue> dictionary;

                        protected Entry current;

                        protected readonly long version;

                        public ForwardEnumerator(LinkedHashMap<TKey, TValue> dictionary)
                        {
                                this.dictionary = dictionary;
                                version = dictionary.version;
                                current = dictionary.header;
                        }

                        #region IDisposable Members
                        public void Dispose()
                        {
                        }

                        #endregion
                        #region IEnumerator Members

                        public bool MoveNext()
                        {
                                if (dictionary.version != version)
                                        throw new InvalidOperationException("Enumerator was modified");

                                if (current.Next == dictionary.header)
                                        return false;

                                current = current.Next;

                                return true;
                        }

                        public void Reset()
                        {
                                current = dictionary.header;
                        }

                        object IEnumerator.Current
                        {
                                get { return ((IEnumerator<T> )this ).Current;
                                    }
                        }

                        #region IEnumerator<T> Members
                        public abstract T Current
                        {                           get ;
                        }



Clone Instance
2
Line Count
47
Source Line
636
Source File
src/NHibernate/Util/LinkedHashMap.cs

                        protected readonly LinkedHashMap<TKey, TValue> dictionary;

                        private Entry current;

                        protected readonly long version;

                        public BackwardEnumerator(LinkedHashMap<TKey, TValue> dictionary)
                        {
                                this.dictionary = dictionary;
                                version = dictionary.version;
                                current = dictionary.header;
                        }

                        #region IDisposable Members
                        public void Dispose()
                        {
                        }

                        #endregion
                        #region IEnumerator Members

                        public bool MoveNext()
                        {
                                if (dictionary.version != version)
                                        throw new InvalidOperationException("Enumerator was modified");

                                if (current.Prev == dictionary.header)
                                        return false;

                                current = current.Prev;

                                return true;
                        }

                        public void Reset()
                        {
                                current = dictionary.header;
                        }

                        object IEnumerator.Current
                        {
                                get { return ((IEnumerator<T> )this ).Current;
                                    }
                        }

                        #region IEnumerator<T> Members
                        public abstract T Current
                        {                           get ;
                        }



Clone AbstractionParameter Count: 3Parameter Bindings

protected readonly LinkedHashMap<TKey, TValue> dictionary;

 [[#variable6ad27c40]]Entry current;

protected readonly long version;

public [[#variable6ad27be0]](LinkedHashMap<TKey, TValue> dictionary)
{
   this.dictionary = dictionary;
   version = dictionary.version;
   current = dictionary.header;
}

#region IDisposable Members
public void Dispose()
{
}

#endregion
#region IEnumerator Members
public bool MoveNext()
{
   if (dictionary.version != version)
      throw new InvalidOperationException("Enumerator was modified");
   if (current. [[#variable6ad27b40]]== dictionary.header)
      return false;
   current = current. [[#variable6ad27b40]];
   return true;
}

public void Reset()
{
   current = dictionary.header;
}

object IEnumerator.Current
{
   get
   {
      return ((IEnumerator<T> )this ).Current;
   }
}

#region IEnumerator<T> Members
public abstract T Current
{
   get ;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6ad27c40]]
private 
12[[#6ad27c40]]
protected 
21[[#6ad27be0]]
BackwardEnumerator 
22[[#6ad27be0]]
ForwardEnumerator 
31[[#6ad27b40]]
Prev 
32[[#6ad27b40]]
Next