public class PQRTree.Leaf extends PQRTree.Node
| Modifier and Type | Field and Description |
|---|---|
protected E |
value
Holds the value
|
children, constraintSetId, numBlackLeaves, numLeaves, parent, type| Constructor and Description |
|---|
Leaf(E e)
Constructs a leaf, registers the leaf in leafMap
|
| Modifier and Type | Method and Description |
|---|---|
E |
getValue() |
void |
toString(StringBuilder s,
int depth)
Helper method for toString()
|
addBlackLeaves, addChild, addChild, addLeaves, 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, transformPintoQprotected E value
public Leaf(E e)
public void toString(StringBuilder s, int depth)
PQRTree.NodetoString in class PQRTree.Nodepublic E getValue()
Copyright © 2018. All rights reserved.