@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Endpoint other = (Endpoint) obj;
        if (this.ip == null) {
            if (other.ip != null) {
                return false;
            }
        } else if (!this.ip.equals(other.ip)) {
            return false;
        }
        return this.port == other.port;
    }
A IP address with port.

@author boyan (boyan@alibaba-inc.com)

2018-Mar-12 3:29:12 PM
jraft-core/src/main/java/com/alipay/sofa/jraft/util/Endpoint.java