java.lang.Object
org.apache.jena.util.iterator.NiceIterator<T>
org.apache.jena.util.iterator.WrappedIterator<T>
org.apache.jena.util.iterator.RandomOrderIterator<T>
- All Implemented Interfaces:
Iterator<T>
,IteratorCloseable<T>
,Closeable
,ClosableIterator<T>
,ExtendedIterator<T>
RandomOrderIterator - Reorders the elements returned by an Iterator.
-
Constructor Summary
ConstructorDescriptionRandomOrderIterator
(int sz, Iterator<T> base) Wrap the base iterator, randomizing with a buffer of length sz. -
Method Summary
Methods inherited from class org.apache.jena.util.iterator.WrappedIterator
close, close, create, createIteratorIterator, createNoRemove, forEachRemaining, forTestingOnly_getBase, ofStream
Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSet
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
forEach, nextOptional
-
Constructor Details
-
RandomOrderIterator
Wrap the base iterator, randomizing with a buffer of length sz.
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from class:WrappedIterator
hasNext: defer to the base iterator -
next
Description copied from class:WrappedIterator
next: defer to the base iterator -
remove
public void remove()Description copied from class:NiceIterator
default remove: we have no elements, so we can't remove any.
-