class NodeFactory
extends java.lang.Object
Constructor and Description |
---|
NodeFactory() |
Modifier and Type | Method and Description |
---|---|
(package private) static Node |
getInstance(int level,
int population)
Create (or return a previously created) Node with the given level and population
|
(package private) static Node |
getInstance(Node tl,
Node tr,
Node bl,
Node br)
Create (or return a previously created) Node with the given child nodes
|
static Node getInstance(Node tl, Node tr, Node bl, Node br)
static Node getInstance(int level, int population)