Applying the proposed solution to the example.
Patterns in Java
Collections for States
Listing 4. Applying the proposed solution to the example.
- By Kevlin Henney
public abstract class Workpiece
public abstract void save();
public class Application
public void saveChanges()
Iterator workpiece = changed.iterator();
private Collection saved, changed;
Kevlin Henney is a Principal Technologist with QA Training in the UK.