|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.cs.coral.icf.plan_based.planners.pip.ReverseListIterator
An iterator that iterates in reverse order.
Field Summary | |
private java.util.ListIterator |
listIter
|
Constructor Summary | |
ReverseListIterator(java.util.List list)
Construct a reverse iterator starting at the end of the list. |
|
ReverseListIterator(java.util.ListIterator iter)
Construct a reverse iterator starting at the same location as this iterator. |
Method Summary | |
void |
add(java.lang.Object o)
Inserts the object into the list. |
boolean |
hasNext()
Checks if the iterator has a next element |
boolean |
hasPrevious()
Checks if the iterator has a previous element |
java.lang.Object |
next()
Gets the next element of the list in reverse order. |
int |
nextIndex()
Gets the index of the element that will be returned by the next call to next. |
java.lang.Object |
previous()
Gets the previous element of the list in reverse order. |
int |
previousIndex()
Gets the index of the element that will be returned by the previous call to previous. |
void |
remove()
Removes the element at the current position. |
void |
set(java.lang.Object o)
Replaces the element at the current position with the given object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.ListIterator listIter
Constructor Detail |
public ReverseListIterator(java.util.List list)
list
- the list to construct the reverse iterator forpublic ReverseListIterator(java.util.ListIterator iter)
iter
- the iterator to reverse the direction ofMethod Detail |
public void add(java.lang.Object o)
object
- the object to insertpublic boolean hasNext()
public boolean hasPrevious()
public java.lang.Object next()
public int nextIndex()
public java.lang.Object previous()
public int previousIndex()
public void remove()
public void set(java.lang.Object o)
o
- the new value for this element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |