|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.util.UnmodifiableIterator
org.norther.tammi.acorn.util.UnmodifiableListIterator
public class UnmodifiableListIterator
An unmodifiable list iterator wrapper filtering out additions and removals.
| Constructor Summary | |
|---|---|
UnmodifiableListIterator()
Constructs an empty iterator. |
|
UnmodifiableListIterator(List l)
Constructs a new iterator for a list. |
|
UnmodifiableListIterator(ListIterator i)
Constructs a new iterator. |
|
UnmodifiableListIterator(Object[] a)
Constructs a new iterator for an array. |
|
| Method Summary | |
|---|---|
void |
add(Object o)
|
protected ListIterator |
getListIterator()
Gets the list iterator adaptee. |
boolean |
hasPrevious()
|
int |
nextIndex()
|
Object |
previous()
|
int |
previousIndex()
|
void |
set(Object o)
|
| Methods inherited from class org.norther.tammi.acorn.util.UnmodifiableIterator |
|---|
equals, getIterator, hashCode, hasMoreElements, hasNext, next, nextElement, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.ListIterator |
|---|
hasNext, next, remove |
| Constructor Detail |
|---|
public UnmodifiableListIterator()
public UnmodifiableListIterator(ListIterator i)
i - the wrapped iterator.public UnmodifiableListIterator(List l)
l - a list to wrap.public UnmodifiableListIterator(Object[] a)
a - an array to wrap.| Method Detail |
|---|
public void add(Object o)
add in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void set(Object o)
set in interface ListIteratorprotected ListIterator getListIterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||