|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.app.util.ScalableDeque.BidirectionalDequeIterator<E>
E - the type of elements returned by the iteratorstatic class ScalableDeque.BidirectionalDequeIterator<E>
A implementation of the iterator for
the ScalableDeque that allows element traverse from
head-to-tail or tail-to-head as required.
If an iterator is created for an empty deque, and then
serialized, it will remain valid upon any subsequent
deserialization. An iterator in this state, where it has been
created but next has never been called, will always
begin an the first entry in the map, if any, since its
deserialization.
| Constructor Summary | |
|---|---|
ScalableDeque.BidirectionalDequeIterator(ScalableDeque<E> deque,
boolean isReverse)
Constructs a new BidirectionalDequeIterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
E |
next()
Returns the next element in the ScalableDeque. |
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ScalableDeque.BidirectionalDequeIterator(ScalableDeque<E> deque,
boolean isReverse)
BidirectionalDequeIterator.
deque - the deque that will be iterated overisReverse - whether this iterator should traverse the
provided deque from tail to head| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<E>public E next()
ScalableDeque. This
method will throw a ConcurrentModificationException if the next
element that the iterator was set to return has been
removed from the deque, and hasNext() as not been
called first.
next in interface Iterator<E>ScalableDeque
NoSuchElementException - if no further entries exist
ConcurrentModificationException - if the next element
of this iterator has been removed from the deque
and hasNext() had not been called prior to
this method.public void remove()
remove in interface Iterator<E>
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||