|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - the type of element stored in the ScalableListstatic interface ScalableList.Node<E>
An interface which unifies the concept of a ListNode and
TreeNode as elements within a ScalableList. This
interface avoids cast warnings when the identity of a given element is
not immediately known.
| Method Summary | |
|---|---|
void |
clear()
Walks up the tree and removes the object and any of its parents. |
ScalableList.TreeNode<E> |
getParent()
Retrieves the node's parent. |
ScalableList.Node<E> |
next()
Returns the next Node in sequence, or null if none exists. |
ScalableList.Node<E> |
prev()
Returns the previous Node in sequence, or null if none
exists. |
com.sun.sgs.app.util.ScalableList.SearchResult<E> |
search(int currentValue,
int destIndex)
Traverses the tree (recursively) in search of the ListNode |
void |
setNext(ScalableList.Node<E> next)
Sets the next element to be the supplied argument. |
void |
setParent(ScalableList.TreeNode<E> t)
Sets the Node's parent to the supplied argument. |
void |
setPrev(ScalableList.Node<E> prev)
Sets the previous element to be the supplied argument. |
int |
size()
The size of the node; that is, the sum of the sizes of its immediate children. |
| Method Detail |
|---|
ScalableList.TreeNode<E> getParent()
void setParent(ScalableList.TreeNode<E> t)
Node's parent to the supplied argument.
int size()
void clear()
AsynchronousClearTask operation.
com.sun.sgs.app.util.ScalableList.SearchResult<E> search(int currentValue,
int destIndex)
currentValue - the current index value at the beginning of
this current searchdestIndex - the absolute index of the desired element
ListNode containing the absolute
destIndex
IndexOutOfBoundsException - if the index is out of boundsScalableList.Node<E> next()
Node in sequence, or null if none exists.
void setNext(ScalableList.Node<E> next)
next - the next NodeScalableList.Node<E> prev()
Node in sequence, or null if none
exists.
void setPrev(ScalableList.Node<E> prev)
prev - the previous Node
|
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 | |||||||||