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

Method isEqual

src/main/java/org/htmlunit/WebWindowEvent.java:124–138  ·  view source on GitHub ↗
(final Object object1, final Object object2)

Source from the content-addressed store, hash-verified

122 }
123
124 private static boolean isEqual(final Object object1, final Object object2) {
125 final boolean result;
126
127 if (object1 == null && object2 == null) {
128 result = true;
129 }
130 else if (object1 == null || object2 == null) {
131 result = false;
132 }
133 else {
134 result = object1.equals(object2);
135 }
136
137 return result;
138 }
139
140 /**
141 * Returns a string representation of this event.

Callers 15

equalsMethod · 0.95
compareRangesFunction · 0.80
compareRangesFunction · 0.80
cFunction · 0.80
cFunction · 0.80
cFunction · 0.80
compareRangesFunction · 0.80
compareRangesFunction · 0.80
doSignOrVerifyMethod · 0.80
isMinValidMethod · 0.80
isMaxValidMethod · 0.80
isMinValidMethod · 0.80

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected