fr.lirmm.graphik.util.ArrayIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integraal-graal-ruleset-analysis Show documentation
Show all versions of integraal-graal-ruleset-analysis Show documentation
Rule base analysis for InteGraal. This is imported from Graal
The newest version!
package fr.lirmm.graphik.util;
import java.util.Iterator;
public class ArrayIterator implements Iterator {
public T[] array;
int i = 0;
@SafeVarargs
public ArrayIterator(T... array) {
this.array = array;
}
@Override
public boolean hasNext() {
return i < array.length;
}
@Override
public T next() {
return array[i++];
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
}