|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.iterators.UnmodifiableIterator
public final class UnmodifiableIterator
Decorates an iterator such that it cannot be modified.
| Method Summary | |
|---|---|
static java.util.Iterator |
decorate(java.util.Iterator iterator)
Decorates the specified iterator such that it cannot be modified. |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Iterator decorate(java.util.Iterator iterator)
If the iterator is already unmodifiable it is returned directly.
iterator - the iterator to decorate
java.lang.IllegalArgumentException - if the iterator is nullpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||