@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        LeaderChangeContext other = (LeaderChangeContext) obj;
        if (this.leaderId == null) {
            if (other.leaderId != null) {
                return false;
            }
        } else if (!this.leaderId.equals(other.leaderId)) {
            return false;
        }
        if (this.status == null) {
            if (other.status != null) {
                return false;
            }
        } else if (!this.status.equals(other.status)) {
            return false;
        }
        return this.term == other.term;
    }
The leader change context, contains:
<ul>
<li>leaderId: the leader peer id.</li>
<li>term: the leader term.</li>
<li>Status: context status.</li>
</ul>
@author boyan (boyan@alibaba-inc.com)

2018-Mar-13 3:23:48 PM
jraft-core/src/main/java/com/alipay/sofa/jraft/entity/LeaderChangeContext.java