T - the type of the elements over which the iteration is being performedpublic final class ReadOnlyIterator<T> extends Object implements Iterator<T>
Iterator implementation that only allows reading elements, used as a wrapper around another iterator to make the
contents immutable to the user of this iterator.| Constructor and Description |
|---|
ReadOnlyIterator(Iterator<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ReadOnlyIterator<T> |
around(Iterator<T> delegate) |
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static <T> ReadOnlyIterator<T> around(Iterator<T> delegate)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.