public final class UnmodifiableListIterator extends Object implements ListIterator, Unmodifiable
| Modifier and Type | Method and Description |
|---|---|
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) |
public static ListIterator decorate(ListIterator iterator)
iterator - the iterator to decorateIllegalArgumentException - if the iterator is nullpublic boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorpublic void set(Object obj)
set in interface ListIteratorpublic void add(Object obj)
add in interface ListIteratorCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.