Class IteratorCons<T>

java.lang.Object
org.apache.jena.atlas.iterator.IteratorCons<T>
All Implemented Interfaces:
Iterator<T>, IteratorCloseable<T>, Closeable

public class IteratorCons<T> extends Object implements IteratorCloseable<T>
IteratorCons : the concatenation of two iterators. See also IteratorConcat. If there potentially many iterators to be joined, it is better to create an IteratorConcat explicitly and add each iterator. IteratorCons is slightly better in the two iterator case.