public class TreeMapNodeBuilder extends Object implements Serializable
| Constructor and Description |
|---|
TreeMapNodeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
TreeMapNode |
buildBranch(String label,
TreeMapNode parent)
Add a branch to the tree.
|
TreeMapNode |
buildLeaf(String label,
double weight,
Value value,
TreeMapNode parent)
add a leaf to the tree.
|
TreeMapNode |
getRoot()
get the build tree.
|
public TreeMapNode buildBranch(String label, TreeMapNode parent)
label - label of the nodeparent - father of the nodepublic TreeMapNode buildLeaf(String label, double weight, Value value, TreeMapNode parent)
label - label of the leafweight - weight of the leafvalue - Value of the leafparent - father of the leafpublic TreeMapNode getRoot()
Copyright © 2005–2019 Appendium - Portfolio Financing Platform. All rights reserved.