/* * Created on 23.07.2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package de.memtext.db; import java.util.Collection; import java.util.Iterator; import java.util.LinkedList; /** * @author Gast * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class Comparison { private String name; private Collection units = new LinkedList(); public Comparison(String name) { this.name = name; } public void addUnit(ComparisonUnit unit) { units.add(unit); } public Iterator iterator() { return units.iterator(); } public int getUnitCount() { return units.size(); } public void removeUnit(ComparisonUnit unit) { units.remove(unit); } public String toString() { return name; } }