@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProxyProvider that = (ProxyProvider) o; return Objects.equals(username, that.username) && Objects.equals(password, that.password) && Objects.equals(getAddress(), that.getAddress()) && Objects.equals(getNonProxyHosts(), that.getNonProxyHosts()) && getType() == that.getType(); }
@Override public int hashCode() { return Objects.hash(username, password, getAddress(), getNonProxyHosts(), getType()); }
@Override public int hashCode() { return Objects.hash(username, getPasswordValue(), getAddress().get(), getNonProxyHosts(), getType()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProxyProvider that = (ProxyProvider) o; return Objects.equals(username, that.username) && Objects.equals(getPasswordValue(), that.getPasswordValue()) && Objects.equals(getAddress().get(), that.getAddress().get()) && Objects.equals(getNonProxyHosts(), that.getNonProxyHosts()) && getType() == that.getType(); }