|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.iterators.UnmodifiableListIterator
Decorates a list iterator such that it cannot be modified.
Method Summary | |
void |
add(Object obj)
|
static ListIterator |
decorate(ListIterator iterator)
Decorates the specified iterator such that it cannot be modified. |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
Object |
next()
|
int |
nextIndex()
|
Object |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
set(Object obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ListIterator decorate(ListIterator iterator)
iterator
- the iterator to decorate
IllegalArgumentException
- if the iterator is nullpublic boolean hasNext()
hasNext
in interface ListIterator
public Object next()
next
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void remove()
remove
in interface ListIterator
public void set(Object obj)
set
in interface ListIterator
public void add(Object obj)
add
in interface ListIterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |