|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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
UnsupportedOperationException
s 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.ListIterator
true
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator
true
public void remove()
remove
in interface java.util.ListIterator
java.lang.UnsupportedOperationException
public void set(java.lang.Object o)
set
in interface java.util.ListIterator
o
- the value to set to current
java.lang.UnsupportedOperationException
public void add(java.lang.Object o)
add
in interface java.util.ListIterator
o
- the value to add.
java.lang.UnsupportedOperationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |