|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.hni.vmagic.util.ForwardingListIterator<E>
E
- the type of the list elementspublic class ForwardingListIterator<E>
Forwarding implementation of the ListIterator
interface.
Constructor Summary | |
---|---|
ForwardingListIterator(java.util.ListIterator<E> iterator)
Creates a forwarding list iterator. |
Method Summary | |
---|---|
void |
add(E e)
Adds an element to the current location. |
boolean |
hasNext()
Returns if a next element exists. |
boolean |
hasPrevious()
Returns if a previous element exist. |
E |
next()
Returns the next element. |
int |
nextIndex()
Returns the next index. |
E |
previous()
Returns the previous element. |
int |
previousIndex()
Returns the previous index. |
void |
remove()
Removes the current element. |
void |
set(E e)
Sets the current element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForwardingListIterator(java.util.ListIterator<E> iterator)
iterator
- the base iteratorMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
hasNext
in interface java.util.ListIterator<E>
true
, if a next element existspublic E next()
next
in interface java.util.Iterator<E>
next
in interface java.util.ListIterator<E>
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<E>
true
, if a previous element existspublic E previous()
previous
in interface java.util.ListIterator<E>
public int nextIndex()
nextIndex
in interface java.util.ListIterator<E>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
remove
in interface java.util.ListIterator<E>
public void set(E e)
set
in interface java.util.ListIterator<E>
e
- the new valuepublic void add(E e)
add
in interface java.util.ListIterator<E>
e
- the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |