|
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.SparseArray.Node
protected static class SparseArray.Node
A red/black tree node. This class is used only within the SparseArray class.
Field Summary | |
---|---|
protected long |
key
The key of the node. |
protected SparseArray.Node |
left
The left child of this node. |
protected static SparseArray.Node |
NIL
NIL is the sentinal Node that is used instead of null, simplifying the implementation of the red/black tree. |
protected SparseArray.Node |
parent
The parent of this node. |
protected boolean |
red
The color (red or black) of this node. |
protected SparseArray.Node |
right
The right child of this node. |
protected Object |
value
The value associated with the key. |
Constructor Summary | |
---|---|
protected |
SparseArray.Node()
Default constructor. |
Method Summary | |
---|---|
Object |
clone()
Make a shallow copy of the node and its sub-nodes. |
boolean |
equals(Object obj)
Test for node equality. |
protected int |
getDepth()
Determine the 2-3-4 node depth of this node (i.e. |
protected boolean |
isLeaf()
Determine if this node is a part of a 2-3-4 leaf node (i.e. |
protected void |
print()
In-order printing of the contents of the node and its children. |
String |
toString()
Provide a string representation of this node's value. |
Field Detail |
---|
protected static final SparseArray.Node NIL
protected long key
protected Object value
protected SparseArray.Node parent
protected SparseArray.Node left
protected SparseArray.Node right
protected boolean red
Constructor Detail |
---|
protected SparseArray.Node()
Method Detail |
---|
public String toString()
public boolean equals(Object obj)
public Object clone()
protected boolean isLeaf()
protected int getDepth()
protected void print()
|
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 |