Changeset 1089 for trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlPageElement.java
- Timestamp:
- 02/19/13 09:41:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlPageElement.java
r1075 r1089 51 51 52 52 /** 53 * the hash code of this document 54 */ 55 private int hashCode; 56 57 /** 53 58 * <p> 54 59 * instantiates a new element representing a tag in an HTML page … … 89 94 this.htmlId = htmlId; 90 95 this.index = index; 96 97 this.hashCode = this.document.hashCode() + this.tagName.hashCode() + 98 (this.parent != null ? this.parent.hashCode() : 0) + 99 (this.htmlId != null ? this.htmlId.hashCode() : 0) + 100 (this.index != null ? this.index : 0); 91 101 } 92 102 … … 203 213 @Override 204 214 public int hashCode() { 205 return document.hashCode() + tagName.hashCode() + (parent != null ? parent.hashCode() : 0) + 206 (htmlId != null ? htmlId.hashCode() : 0) + (index != null ? index : 0); 215 return hashCode; 207 216 } 208 217
Note: See TracChangeset
for help on using the changeset viewer.