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

org.xmlcml.files.QuickscrapeNormaList-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;

/** list of QuickscrapeNorma objects.
 * 
 * @author pm286
 *
 */
@Deprecated

public class QuickscrapeNormaList implements Iterable {

	
	private static final Logger LOG = Logger
			.getLogger(QuickscrapeNormaList.class);
	static {
		LOG.setLevel(Level.DEBUG);
	}
	
	private List qnList;
	
	public QuickscrapeNormaList() {
		ensureQNList();
	}

	private void ensureQNList() {
		if (qnList == null) {
			qnList = new ArrayList();
		}
	}

	public int size() {
		ensureQNList();
		return qnList.size();
	}

	@Override
	public Iterator iterator() {
		ensureQNList();
		return qnList.iterator();
	}
	
	public QuickscrapeNorma get(int i) {
		ensureQNList();
		return qnList.get(i);
	}
	
	public void add(QuickscrapeNorma qn) {
		ensureQNList();
		qnList.add(qn);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy