Class PQRTree.Leaf

  extended by javatools.datatypes.PQRTree.Node
      extended by javatools.datatypes.PQRTree.Leaf
Enclosing class:

public class PQRTree.Leaf
extends PQRTree.Node

A node that has a value

Constructor Summary
PQRTree.Leaf(E e)
          Constructs a leaf, registers the leaf in leafMap
Method Summary
 E getValue()
 void toString(java.lang.StringBuilder s, int depth)
          Helper method for toString()
Methods inherited from class javatools.datatypes.PQRTree.Node
addBlackLeaves, addChild, addChild, allocChildren, child, color, colorAndGetLCA, debug, dropChild, firstChild, grayChild, is, is, isBlack, isGray, isLeaf, isP, isQ, isR, isWhite, lastChild, makeChildGrandchild, makeChildGrandchild, makeGrandchildChild, mergeIntoLCA, moveChildrenAway, numChildren, prepareLCA, reverseLCA, reverseQNode, toString, transformPintoQ
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public PQRTree.Leaf(E e)
Constructs a leaf, registers the leaf in leafMap

Method Detail


public void toString(java.lang.StringBuilder s,
                     int depth)
Description copied from class: PQRTree.Node
Helper method for toString()


public E getValue()