|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.umd.cfar.lamp.viper.util.AbstractCircularIterator
An abstract iterator that does not have an end, instead returning to the beginning.
This class implements the empty circular iterator, and throws
UnsupportedOperationExceptions when the change methods are invoked.
| Constructor Summary | |
AbstractCircularIterator()
|
|
| Method Summary | |
void |
add(java.lang.Object o)
Adds the value between current and next; unimplemented. |
boolean |
hasNext()
Tests to see if there is another element. |
boolean |
hasPrevious()
Tests to see if there is another element. |
void |
remove()
Removes the current element; unimplemented. |
void |
set(java.lang.Object o)
Sets the current element; unimplemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.umd.cfar.lamp.viper.util.CircularIterator |
current, isEmpty |
| Methods inherited from interface java.util.ListIterator |
next, nextIndex, previous, previousIndex |
| Constructor Detail |
public AbstractCircularIterator()
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.ListIteratortruepublic boolean hasPrevious()
hasPrevious in interface java.util.ListIteratortruepublic void remove()
remove in interface java.util.ListIteratorjava.lang.UnsupportedOperationExceptionpublic void set(java.lang.Object o)
set in interface java.util.ListIteratoro - the value to set to current
java.lang.UnsupportedOperationExceptionpublic void add(java.lang.Object o)
add in interface java.util.ListIteratoro - the value to add.
java.lang.UnsupportedOperationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||