jvx.util
Class PuBinaryTreeNode
- java.lang.Object
-
- jvx.util.PuBinaryTreeNode
-
public class PuBinaryTreeNode extends java.lang.ObjectClass for nodes in a binary search tree.- Author:
- Ulrich Reitebuch
- Version:
- 24.04.13, 1.00 created (ur)
-
-
Constructor Summary
Constructors Constructor and Description PuBinaryTreeNode(int key, java.lang.Object value)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetHeight()Get Height of this node.intgetKey()Get key (index) of this node.PuBinaryTreeNodegetLeft()Get left child of this node.PuBinaryTreeNodegetParent()Get parent node of this node.PuBinaryTreeNodegetRight()Get right child of this node.java.lang.ObjectgetValue()Get value object of this node.voidsetHeight(int m_height)Set Height of this node.voidsetKey(int m_key)Set key (index) of this node.voidsetLeft(PuBinaryTreeNode m_left)Set left child of this node.voidsetParent(PuBinaryTreeNode m_parent)Set parent node of this node.voidsetRight(PuBinaryTreeNode m_right)Set right child of this node.voidsetValue(java.lang.Object value)Set value object of this node.
-
-
-
Constructor Detail
-
PuBinaryTreeNode
public PuBinaryTreeNode(int key, java.lang.Object value)Constructor
-
-
Method Detail
-
setValue
public void setValue(java.lang.Object value)
Set value object of this node.
-
getValue
public java.lang.Object getValue()
Get value object of this node.
-
setKey
public void setKey(int m_key)
Set key (index) of this node.
-
getKey
public int getKey()
Get key (index) of this node.
-
setHeight
public void setHeight(int m_height)
Set Height of this node.
-
getHeight
public int getHeight()
Get Height of this node.
-
setRight
public void setRight(PuBinaryTreeNode m_right)
Set right child of this node.
-
getRight
public PuBinaryTreeNode getRight()
Get right child of this node.
-
setLeft
public void setLeft(PuBinaryTreeNode m_left)
Set left child of this node.
-
getLeft
public PuBinaryTreeNode getLeft()
Get left child of this node.
-
setParent
public void setParent(PuBinaryTreeNode m_parent)
Set parent node of this node.
-
getParent
public PuBinaryTreeNode getParent()
Get parent node of this node.
-
-
"