public class RandomOrderIterator<T> extends WrappedIterator<T>
Constructor and Description |
---|
RandomOrderIterator(int sz,
Iterator<T> base)
Wrap the base iterator, randomizing with a buffer of length sz.
|
Modifier and Type | Method and Description |
---|---|
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.
|
close, close, create, createIteratorIterator, createNoRemove, forTestingOnly_getBase
andThen, andThen, asList, asSet, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSet
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextOptional
forEachRemaining
public boolean hasNext()
WrappedIterator
public T next()
WrappedIterator
public void remove()
WrappedIterator
Licenced under the Apache License, Version 2.0