All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmlcml.files.ResultsElementList-old Maven / Gradle / Ivy

There is a newer version: 2.9
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy