MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / equals

Method equals

src/main/java/org/htmlunit/WebWindowEvent.java:76–89  ·  view source on GitHub ↗

Returns true if the two objects are equal. @param object the object to compare against @return true if the two objects are equal

(final Object object)

Source from the content-addressed store, hash-verified

74 * @return true if the two objects are equal
75 */
76 @Override
77 public boolean equals(final Object object) {
78 if (null == object) {
79 return false;
80 }
81 if (getClass() == object.getClass()) {
82 final WebWindowEvent event = (WebWindowEvent) object;
83 return isEqual(getSource(), event.getSource())
84 && getEventType() == event.getEventType()
85 && isEqual(getOldPage(), event.getOldPage())
86 && isEqual(getNewPage(), event.getNewPage());
87 }
88 return false;
89 }
90
91 /**
92 * Returns the hash code for this object.

Callers 1

isEqualMethod · 0.45

Calls 6

isEqualMethod · 0.95
getEventTypeMethod · 0.95
getOldPageMethod · 0.95
getNewPageMethod · 0.95
getSourceMethod · 0.80
getClassMethod · 0.45

Tested by

no test coverage detected