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) |
public boolean hasNext()
hasNext
in interface Iterator<T>
Iterator.hasNext()
public T next()
next
in interface Iterator<T>
Iterator.next()
public void remove()
remove
in interface Iterator<T>
Iterator.remove()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.