class ProxySettings {

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        ProxySettings settings = (ProxySettings) o;
        return getProxyPort() == settings.getProxyPort() &&
                Objects.equals(getProxyHost(), settings.getProxyHost());
    }

    private  ProxySettings(String proxyHost, int proxyPort);

}