|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pal.tree.NodeFactory
Creates nodes The purpose of this class is to decouple the creation of a class of type "Node" from its actual implementation. This class should be used instead of calling the constructor of an implementation of "Node" (at the moment "SimpleNode") as it may change in the future.
Other plans: add features here to recyle old nodes rather than leaving them to the Java garbage collector
Constructor Summary | |
NodeFactory()
|
Method Summary | |
static Node |
createNode()
create a node |
static Node |
createNode(Node node)
constructor used to clone a node and all children |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeFactory()
Method Detail |
public static Node createNode()
public static Node createNode(Node node)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |