I have a model class like below. I need to edit items, but the model has to know when any object has been modified. Also I need to provide very often with the objects inside to the view, which is who's going to eventually edit them. That's why I need an edit method but I don't know a proper way to do it.public class Container {    private List<Item> items;    public Item get(int index) {         return items.get(index);    }    //edit method here    //notify edit}
Composition model class with edit feature
design;mvc