|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.cs.algs4.growingtree.demos.RedBlackOperator<P>
edu.princeton.cs.algs4.growingtree.demos.RedBlackInsertion<P>
public class RedBlackInsertion<P extends RBNodeProperties>
Constructor Summary | |
---|---|
RedBlackInsertion()
|
Method Summary | |
---|---|
void |
doInsert(IInsertingNode<P> root,
INode<P> newNode)
|
Methods inherited from class edu.princeton.cs.algs4.growingtree.demos.RedBlackOperator |
---|
isRed |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedBlackInsertion()
Method Detail |
---|
public void doInsert(IInsertingNode<P> root, INode<P> newNode)
doInsert
in interface IInsertOperator<P extends RBNodeProperties>
root
- Root of the treenewNode
- Node to be inserted into the tree. Null when
inserting into an empty tree.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |