Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
29 | 2 | 1 | 0.994 | class_member_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 29 | 97 | src/NHibernate.Test/NHSpecificTest/NH1159/Contact.cs |
2 | 29 | 97 | src/NHibernate.Test/NHSpecificTest/NH1159/ContactTitle.cs |
| ||||
/// <summary> /// Returns whether or not the object has changed it's values. /// </summary> public virtual bool IsChanged { get { return isChanged; } } #endregion #region Equals And HashCode Overrides /// <summary> /// local implementation of Equals based on unique value members /// </summary> public override bool Equals(object obj) { if (this == obj) return true; if ((obj == null) || (obj.GetType() != this.GetType())) return false; Contact castObj = (Contact)obj; return (castObj != null) && (this.id == castObj.Id); } /// <summary> /// local implementation of GetHashCode based on unique value members /// </summary> public override int GetHashCode() { int hash = 57; hash = 27 * hash * id.GetHashCode(); return hash; } |
| ||||
/// <summary> /// Returns whether or not the object has changed it's values. /// </summary> public virtual bool IsChanged { get { return isChanged; } } #endregion #region Equals And HashCode Overrides /// <summary> /// local implementation of Equals based on unique value members /// </summary> public override bool Equals(object obj) { if (this == obj) return true; if ((obj == null) || (obj.GetType() != this.GetType())) return false; ContactTitle castObj = (ContactTitle)obj; return (castObj != null) && (this.id == castObj.Id); } /// <summary> /// local implementation of GetHashCode based on unique value members /// </summary> public override int GetHashCode() { int hash = 57; hash = 27 * hash * id.GetHashCode(); return hash; } |
| |||
/// <summary> /// Returns whether or not the object has changed it's values. /// </summary> public virtual bool IsChanged { get { return isChanged; } } #endregion #region Equals And HashCode Overrides /// <summary> /// local implementation of Equals based on unique value members /// </summary> public override bool Equals(object obj) { if (this == obj) return true; if ((obj == null) || (obj.GetType() != this.GetType())) return false; [[#variable6bdecaa0]]castObj = ( [[#variable6bdecaa0]])obj; return (castObj != null) && (this.id == castObj.Id); } /// <summary> /// local implementation of GetHashCode based on unique value members /// </summary> public override int GetHashCode() { int hash = 57; hash = 27 * hash * id.GetHashCode(); return hash; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6bdecaa0]] | ContactTitle |
1 | 2 | [[#6bdecaa0]] | Contact |