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_getBaseandThen, andThen, asList, asSet, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextOptionalforEachRemainingpublic boolean hasNext()
WrappedIteratorpublic T next()
WrappedIteratorpublic void remove()
WrappedIteratorLicenced under the Apache License, Version 2.0