Representation of workpiece saved as a flag.
Patterns in JavaCollections for States
Listing 1. Representation of workpiece saved as a flag.
- By Kevlin Henney
- July 17, 2000
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.