|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.walend.collection.IndexedIteratorOfImmutable
Use this class to wrap IndexedIterators when the Collection is Immutable.
Field Summary | |
private IndexedIterator |
wrapped
|
Constructor Summary | |
IndexedIteratorOfImmutable(IndexedIterator it)
|
Method Summary | |
boolean |
hasNext()
|
int |
index()
|
java.lang.Object |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private IndexedIterator wrapped
Constructor Detail |
public IndexedIteratorOfImmutable(IndexedIterator it)
Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public int index()
index
in interface IndexedIterator
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- because the underlying collection is immutable.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |