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