All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.qyh.instd4j.config.DefaultProxyConfig Maven / Gradle / Ivy

There is a newer version: 0.3
Show newest version
package me.qyh.instd4j.config;

public class DefaultProxyConfig implements ProxyConfig {
    private final String addr;
    private final Integer port;

    public DefaultProxyConfig(String addr, Integer port) {
        this.addr = addr;
        this.port = port;
    }

    @Override
    public Integer getPort() {
        return port;
    }

    @Override
    public String getAddr() {
        return addr;
    }

    @Override
    public boolean isEnable() {
        return addr != null && port != null && !addr.isEmpty();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy