package de.fhg.iais.cortex.entity.utils;

import java.util.Collections;
import java.util.Iterator;
import java.util.List;

import org.apache.solr.common.SolrDocument;

public class DocumentIterator implements Iterator<SolrDocument> {

    Iterator<SolrDocument> iterator;

    public DocumentIterator() {
        this(Collections.<SolrDocument> emptyList());
    }

    public DocumentIterator(List<SolrDocument> list) {
        this.iterator = list.iterator();

    }

    public boolean hasNext() {
        return this.iterator.hasNext();
    }

    public SolrDocument next() {
        return this.iterator.next();
    }

    public void remove() {
        this.iterator.remove();
    }
}
