package mikera.indexz.impl;
import java.util.Iterator;
import mikera.indexz.AIndex;
/**
* General purpose iterator for arbitrary indexes.
*
* @author Mike
*/
public class IndexIterator implements Iterator {
private final AIndex source;
private final int length;
private int pos=0;
public IndexIterator(AIndex source) {
this.source=source;
this.length=source.length();
}
@Override
public boolean hasNext() {
return pos
Ads help maintain this website.