|
||||||||||
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
com.hp.hpl.jena.util.iterator.WrappedIterator
com.hp.hpl.jena.util.iterator.RandomOrderIterator
public class RandomOrderIterator
RandomOrderIterator - Reorders the elements returned by an Iterator.
Constructor Summary | |
---|---|
RandomOrderIterator(int sz,
java.util.Iterator base)
Wrap the base iterator, randomizing with a buffer of length sz. |
Method Summary | |
---|---|
boolean |
hasNext()
hasNext: defer to the base iterator |
java.lang.Object |
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, emptyIterator, filterDrop, filterKeep, mapWith, removeNext |
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 base)
Method Detail |
---|
public boolean hasNext()
WrappedIterator
hasNext
in interface java.util.Iterator
hasNext
in class WrappedIterator
public java.lang.Object next()
WrappedIterator
next
in interface java.util.Iterator
next
in class WrappedIterator
public void remove()
WrappedIterator
remove
in interface java.util.Iterator
remove
in class WrappedIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |