MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / equals

Method equals

java/src/org/openqa/selenium/Cookie.java:283–298  ·  view source on GitHub ↗

Two cookies are equal if the name and value match

(@Nullable Object o)

Source from the content-addressed store, hash-verified

281
282 /** Two cookies are equal if the name and value match */
283 @Override
284 public boolean equals(@Nullable Object o) {
285 if (this == o) {
286 return true;
287 }
288 if (!(o instanceof Cookie)) {
289 return false;
290 }
291
292 Cookie cookie = (Cookie) o;
293
294 if (!name.equals(cookie.name)) {
295 return false;
296 }
297 return Objects.equals(value, cookie.value);
298 }
299
300 @Override
301 public int hashCode() {

Callers 2

toStringMethod · 0.45

Calls

no outgoing calls

Tested by 1