org.xmlcml.files.QuickscrapeNormaList-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;
/** 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);
}
}