org.xmlcml.files.ResultsElementList-old Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of euclid Show documentation
Show all versions of euclid Show documentation
A Java library for 2D and 3D geometric calculations
package org.xmlcml.files;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
/** wrapper for collection of ResultsElement.
*
* @author pm286
*
*/
@Deprecated
public class ResultsElementList implements Iterable {
private static final Logger LOG = Logger.getLogger(ResultsElementList.class);
static {
LOG.setLevel(Level.DEBUG);
}
protected List resultsElementList;
public ResultsElementList() {
}
public void add(ResultsElement resultsElement) {
ensureResultsElementList();
resultsElementList.add(resultsElement);
}
protected void ensureResultsElementList() {
if (resultsElementList == null) {
resultsElementList = new ArrayList();
}
}
@Override
public Iterator iterator() {
ensureResultsElementList();
return resultsElementList.iterator();
}
}