@Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (this.ip == null ? 0 : this.ip.hashCode());
        result = prime * result + this.port;
        return result;
    }
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