java.lang.Object
org.apache.jena.atlas.iterator.IteratorConcat<T>
- All Implemented Interfaces:
Iterator<T>,IteratorCloseable<T>,Closeable
Iterator of Iterators IteratorConcat is better when there are lots of iterators to
be joined.
IteratorCons is slightly better for two iterators.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IteratorConcat
public IteratorConcat()
-
-
Method Details
-
concat
Usually, it is better to create an IteratorConcat explicitly and add iterator if there are going to be many.- Parameters:
iter1-iter2-- Returns:
- Iterator
- See Also:
-
add
-
hasNext
public boolean hasNext() -
next
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<T>
-
close
public void close()
-