@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PartitionReassignmentState state = (PartitionReassignmentState) o;
        return done == state.done && Objects.equals(currentReplicas, state.currentReplicas) && Objects.equals(targetReplicas, state.targetReplicas);
    }
@param currentReplicas The current replicas.
@param targetReplicas  The target replicas.
@param done            True if the reassignment is done.
tools/src/main/java/org/apache/kafka/tools/reassign/PartitionReassignmentState.java