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>RBTExceptionpublic void setRootNode(IRBTNode<String> rootNode) throws RBTException
IRBTNodeManagersetRootNode in interface IRBTNodeManager<String>rootNode - the root red black tree nodeRBTExceptionpublic IRBTNode<String> newSentinel()
IRBTNodeManagernewSentinel in interface IRBTNodeManager<String>public void append(String value) throws RBTException
RBTExceptionpublic void remove(String value) throws RBTException
RBTExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.