public class RBTree extends Object implements IRBTNodeManager<String>
Constructor and Description |
---|
RBTree(IInstanceFactory instanceFactory) |
Modifier and Type | Method and Description |
---|---|
void |
append(String value) |
IRBTNode<String> |
getRootNode() |
static RBTree |
newInstance(IInstanceFactory instanceFactory) |
IRBTNode<String> |
newSentinel()
to get a new sentinel
|
void |
remove(String value) |
void |
setRootNode(IRBTNode<String> rootNode)
set the root red black tree node
|
public RBTree(IInstanceFactory instanceFactory)
public static RBTree newInstance(IInstanceFactory instanceFactory)
public IRBTNode<String> getRootNode() throws RBTException
getRootNode
in interface IRBTNodeManager<String>
RBTException
public void setRootNode(IRBTNode<String> rootNode) throws RBTException
IRBTNodeManager
setRootNode
in interface IRBTNodeManager<String>
rootNode
- the root red black tree nodeRBTException
public IRBTNode<String> newSentinel()
IRBTNodeManager
newSentinel
in interface IRBTNodeManager<String>
public void append(String value) throws RBTException
RBTException
public void remove(String value) throws RBTException
RBTException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.