answers

A read-only list of answers to be rendered in the view.

The view should call the APIs provided in this class (setAnswer, addAnswer, removeAnswer and clearAnswer) to modify the answers. This is to make sure any updates to the answers are propagated to the view model and a subsequent UI refresh will be triggered (e.g. in case the enablement status or validation results of this or other questions are affected).

This is a deep copy of the answers in the QuestionnaireResponse.QuestionnaireResponseItemComponent so that proper comparisons can be carried out for the RecyclerView.Adapter to decide which items need to be updated.