|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.AbstractSparseArray.Node
protected abstract static class AbstractSparseArray.Node
An AVL tree node. This class is used only within the AbstractSparseArray class and its derivations.
| Field Summary | |
|---|---|
protected int |
balanceThe AVL balance factor of the sub-tree. |
protected long |
keyThe key of the node. |
protected AbstractSparseArray.Node |
leftThe left child of this node. |
protected AbstractSparseArray.Node |
parentThe parent of this node. |
protected AbstractSparseArray.Node |
rightThe right child of this node. |
| Constructor Summary | |
|---|---|
protected |
AbstractSparseArray.Node() |
| Method Summary | |
|---|---|
protected void |
adopt(AbstractSparseArray.Node child, boolean fLeft)Adopt a child node |
java.lang.Object |
clone()Make a shallow copy of the node and its sub-nodes. |
abstract java.lang.Object |
getValue()Get the value associated with the node. |
protected boolean |
isLeaf()Determine if this node is a part of a 2-3-4 leaf node (i.e. at least one null child). |
protected boolean |
isLinked()Return true iff the node is linked to other nodes. |
protected void |
print()Print the tree structure. |
abstract java.lang.Object |
setValue(java.lang.Object oValue)Set the value associated with the node. |
java.lang.String |
toString()Provide a string representation of this node's value. |
protected int |
validate()Validate the tree rooted at node is a proper AVL tree. |
| Field Detail |
|---|
protected long key
protected AbstractSparseArray.Node parent
protected AbstractSparseArray.Node left
protected AbstractSparseArray.Node right
protected int balance
| Constructor Detail |
|---|
protected AbstractSparseArray.Node()
| Method Detail |
|---|
protected void adopt(AbstractSparseArray.Node child,
boolean fLeft)
child - the child to adoptfLeft - the position of the childpublic abstract java.lang.Object getValue()
public abstract java.lang.Object setValue(java.lang.Object oValue)
oValue - the value assocaited with the nodepublic java.lang.String toString()
public java.lang.Object clone()
protected boolean isLeaf()
protected boolean isLinked()
protected void print()
protected int validate()
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||