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 static <T> ReadOnlyIterator<T> around(Iterator<T> delegate)
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.