|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Tree.Crawler
protected static class Tree.Crawler
A red/black tree node iterator. Simple concept:
Field Summary | |
---|---|
protected static int |
ABOVE
|
protected Tree.Node |
current
|
protected int |
fromdir
|
protected static int |
LEFT
|
protected static Tree.Node |
NIL
NIL is the sentinal Node that is used instead of null, simplifying the implementation of the red/black tree. |
protected static int |
RIGHT
|
protected static int |
SITTING
|
Constructor Summary | |
---|---|
|
Tree.Crawler(Tree.Node head)
Crawler constructor. |
protected |
Tree.Crawler(Tree.Node head,
int fromdir)
Crawler constructor. |
Method Summary | |
---|---|
Object |
clone()
Make a shallow copy of the node crawler. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
Object |
nextElement()
Returns the next element of this enumeration. |
String |
toString()
Provide a string representation of this node's value. |
Field Detail |
---|
protected static final Tree.Node NIL
protected static final int ABOVE
protected static final int LEFT
protected static final int SITTING
protected static final int RIGHT
protected Tree.Node current
protected int fromdir
Constructor Detail |
---|
public Tree.Crawler(Tree.Node head)
protected Tree.Crawler(Tree.Node head, int fromdir)
Method Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement()
nextElement
in interface Enumeration
public String toString()
public Object clone()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |