Package org.apache.jena.util.iterator
Class RandomOrderIterator<T>
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, 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
Methods inherited from interface java.util.Iterator
forEachRemaining
-
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:WrappedIterator
if .remove() is allowed, delegate to the base iterator's .remove; otherwise, throw an UnsupportedOperationException.
-