Representation of workpiece saved as a flag.
Patterns in JavaCollections for States
Listing 1. Representation of workpiece saved as a flag.
- By Kevlin Henney
public abstract class Workpiece
public void save()
changed = false;
public boolean saved()
protected abstract void saveState();
private boolean changed;
Kevlin Henney is a Principal Technologist with QA Training in the UK.