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

Method equals

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

Source from the content-addressed store, hash-verified

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