org.apache.directory.server.core.splay
Class LinkedBinaryNode<T>

java.lang.Object
  extended by org.apache.directory.server.core.splay.LinkedBinaryNode<T>

public class LinkedBinaryNode<T>
extends java.lang.Object

A linked binary tree node.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Method Summary
 int getDepth()
          This method is used for internal purpose only while pretty printing the tree.
 T getKey()
           
 LinkedBinaryNode<T> getLeft()
           
 LinkedBinaryNode<T> getRight()
           
 boolean isLeaf()
           
 void setDepth(int depth)
          This method is used for internal purpose only while pretty printing the tree.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLeft

public LinkedBinaryNode<T> getLeft()

getRight

public LinkedBinaryNode<T> getRight()

getKey

public T getKey()

isLeaf

public boolean isLeaf()

getDepth

public int getDepth()
This method is used for internal purpose only while pretty printing the tree.

Returns:
the depth at the this node

setDepth

public void setDepth(int depth)
This method is used for internal purpose only while pretty printing the tree.

Parameters:
depth - value representing the depth of the this node

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.