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

Method equals

java/src/org/openqa/selenium/Proxy.java:444–463  ·  view source on GitHub ↗
(@Nullable Object o)

Source from the content-addressed store, hash-verified

442 }
443
444 @Override
445 public boolean equals(@Nullable Object o) {
446 if (this == o) {
447 return true;
448 }
449 if (o == null || getClass() != o.getClass()) {
450 return false;
451 }
452 Proxy proxy = (Proxy) o;
453 return isAutodetect() == proxy.isAutodetect()
454 && getProxyType() == proxy.getProxyType()
455 && Objects.equals(getHttpProxy(), proxy.getHttpProxy())
456 && Objects.equals(getNoProxy(), proxy.getNoProxy())
457 && Objects.equals(getSslProxy(), proxy.getSslProxy())
458 && Objects.equals(getSocksProxy(), proxy.getSocksProxy())
459 && Objects.equals(getSocksVersion(), proxy.getSocksVersion())
460 && Objects.equals(getSocksUsername(), proxy.getSocksUsername())
461 && Objects.equals(getSocksPassword(), proxy.getSocksPassword())
462 && Objects.equals(getProxyAutoconfigUrl(), proxy.getProxyAutoconfigUrl());
463 }
464
465 @Override
466 public int hashCode() {

Callers

nothing calls this directly

Calls 11

isAutodetectMethod · 0.95
getProxyTypeMethod · 0.95
getHttpProxyMethod · 0.95
getNoProxyMethod · 0.95
getSslProxyMethod · 0.95
getSocksProxyMethod · 0.95
getSocksVersionMethod · 0.95
getSocksUsernameMethod · 0.95
getSocksPasswordMethod · 0.95
getProxyAutoconfigUrlMethod · 0.95
getClassMethod · 0.65

Tested by

no test coverage detected