public final class UnmodifiableIterator extends Object implements Iterator, Unmodifiable
public static Iterator decorate(Iterator iterator)
If the iterator is already unmodifiable it is returned directly.
iterator
- the iterator to decorateIllegalArgumentException
- if the iterator is nullCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.