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
ConstructorsConstructorDescriptionRandomOrderIterator(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, ofStreamMethods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSetMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:WrappedIteratorhasNext: defer to the base iterator -
next
Description copied from class:WrappedIteratornext: defer to the base iterator -
remove
public void remove()Description copied from class:NiceIteratordefault remove: we have no elements, so we can't remove any.
-