org.inria.ns.reflex.util
Class CollectionsHelper.UnmodifiableIterator
java.lang.Object
org.inria.ns.reflex.util.CollectionsHelper.UnmodifiableIterator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- CollectionsHelper
public static class CollectionsHelper.UnmodifiableIterator
- extends Object
- implements Iterator
An unmodifiable Iterator.
remove()
is ineffective.
CollectionsHelper.UnmodifiableIterator
public CollectionsHelper.UnmodifiableIterator(Iterator iterator)
- Create an unmodifiable iterator.
- Parameters:
iterator
- The iterator to wrap.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
- See Also:
Iterator.hasNext()
next
public Object next()
- Specified by:
next
in interface Iterator
- See Also:
Iterator.next()
remove
public void remove()
- Do not remove.
- Specified by:
remove
in interface Iterator