public class AbstractListIteratorDecorator
extends java.lang.Object
implements java.util.ListIterator
All methods are forwarded to the decorated list iterator.
| Constructor and Description |
|---|
AbstractListIteratorDecorator(java.util.ListIterator iterator)
Constructor that decorates the specified iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object obj) |
boolean |
hasNext() |
boolean |
hasPrevious() |
java.lang.Object |
next() |
int |
nextIndex() |
java.lang.Object |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(java.lang.Object obj) |
public AbstractListIteratorDecorator(java.util.ListIterator iterator)
iterator - the iterator to decorate, must not be nulljava.lang.IllegalArgumentException - if the collection is nullpublic boolean hasNext()
hasNext in interface java.util.IteratorhasNext in interface java.util.ListIteratorpublic java.lang.Object next()
next in interface java.util.Iteratornext in interface java.util.ListIteratorpublic int nextIndex()
nextIndex in interface java.util.ListIteratorpublic boolean hasPrevious()
hasPrevious in interface java.util.ListIteratorpublic java.lang.Object previous()
previous in interface java.util.ListIteratorpublic int previousIndex()
previousIndex in interface java.util.ListIteratorpublic void remove()
remove in interface java.util.Iteratorremove in interface java.util.ListIteratorpublic void set(java.lang.Object obj)
set in interface java.util.ListIteratorpublic void add(java.lang.Object obj)
add in interface java.util.ListIterator"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"