@Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final LogId other = (LogId) obj;
        if (this.index != other.index) {
            return false;
        }
        // noinspection RedundantIfStatement
        if (this.term != other.term) {
            return false;
        }
        return true;
    }
Log identifier.

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

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