|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.util.iterator.NiceIterator<T>
com.hp.hpl.jena.util.iterator.WrappedIterator<T>
com.hp.hpl.jena.util.iterator.RandomOrderIterator<T>
public class RandomOrderIterator<T>
RandomOrderIterator - Reorders the elements returned by an Iterator.
Constructor Summary | |
---|---|
RandomOrderIterator(int sz,
java.util.Iterator<T> base)
Wrap the base iterator, randomizing with a buffer of length sz. |
Method Summary | |
---|---|
boolean |
hasNext()
hasNext: defer to the base iterator |
T |
next()
next: defer to the base iterator |
void |
remove()
if .remove() is allowed, delegate to the base iterator's .remove; otherwise, throw an UnsupportedOperationException. |
Methods inherited from class com.hp.hpl.jena.util.iterator.WrappedIterator |
---|
close, close, create, createNoRemove, forTestingOnly_getBase |
Methods inherited from class com.hp.hpl.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 |
Constructor Detail |
---|
public RandomOrderIterator(int sz, java.util.Iterator<T> base)
Method Detail |
---|
public boolean hasNext()
WrappedIterator
hasNext
in interface java.util.Iterator<T>
hasNext
in class WrappedIterator<T>
public T next()
WrappedIterator
next
in interface java.util.Iterator<T>
next
in class WrappedIterator<T>
public void remove()
WrappedIterator
remove
in interface java.util.Iterator<T>
remove
in class WrappedIterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |