You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
912 B
43 lines
912 B
/* |
|
* 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; |
|
} |
|
}
|
|
|