Class SparseArrayIndexedIterator<E>

java.lang.Object
org.apache.jena.util.iterator.NiceIterator<FastHashSet.IndexedKey<E>>
org.apache.jena.mem2.iterator.SparseArrayIndexedIterator<E>
Type Parameters:
E - the type of the array elements
All Implemented Interfaces:
Iterator<FastHashSet.IndexedKey<E>>, org.apache.jena.atlas.iterator.IteratorCloseable<FastHashSet.IndexedKey<E>>, org.apache.jena.atlas.lib.Closeable, ClosableIterator<FastHashSet.IndexedKey<E>>, ExtendedIterator<FastHashSet.IndexedKey<E>>

public class SparseArrayIndexedIterator<E> extends NiceIterator<FastHashSet.IndexedKey<E>> implements Iterator<FastHashSet.IndexedKey<E>>
An iterator over a sparse array, that skips null entries. This iterator returns elements as FastHashSet.IndexedKey objects, which contain both the index and the value of the element. The iterator works in ascending order, starting from index 0 up to the specified exclusive index. This iterator will check for concurrent modifications by invoking a Runnable