|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.app.util.ScalableList.ScalableListNodeIterator<E>
E - the type of element stored in the ScalableListstatic class ScalableList.ScalableListNodeIterator<E>
This iterator walks through the ListNode<E>s which parent the
SubLists. An iterator for this type of element is necessary to
support the other element iterator as well as indexOf()
operations.
| Constructor Summary | |
|---|---|
ScalableList.ScalableListNodeIterator(ScalableList.ListNode<E> head)
Constructor to create a new iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Determines if there is a next element to iterate over; that is, if the next ListNode is not null. |
boolean |
hasPrev()
Determines if there is a previous element to iterate over; that is, if the previous ListNode is not null. |
ScalableList.ListNode<E> |
next()
Returns the next ListNode<E> in order from the list |
ScalableList.ListNode<E> |
prev()
Returns the previous ListNode<E> in order from the list |
void |
remove()
Deprecated. this operation is not supported because the ScalableList only removes elements explicitly, not
ListNodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ScalableList.ScalableListNodeIterator(ScalableList.ListNode<E> head)
head - the head ListNode from which to begin iterating| Method Detail |
|---|
public boolean hasNext()
ListNode is not null.
hasNext in interface Iterator<ScalableList.ListNode<E>>true if the next element is not null, and
false otherwisepublic ScalableList.ListNode<E> next()
ListNode<E> in order from the list
next in interface Iterator<ScalableList.ListNode<E>>ListNode
NoSuchElementException - if there exists no next siblingpublic boolean hasPrev()
ListNode is not null.
true if the previous element is not null, and
false otherwisepublic ScalableList.ListNode<E> prev()
ListNode<E> in order from the list
ListNode
NoSuchElementException - if there exists no previous siblingpublic void remove()
ScalableList only removes elements explicitly, not
ListNodes.
remove in interface Iterator<ScalableList.ListNode<E>>UnsupportedOperationException - the operation is not
supported
|
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 | |||||||||