public boolean isEmpty() {
        return getIp().equals(Utils.IP_ANY) && getPort() == 0 && this.idx == 0;
    }
Returns true when ip is ANY_IP, port is zero and idx is zero too.
jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java