public class MetricsTreeNode extends Object
Constructor and Description |
---|
MetricsTreeNode(String name)
Create a new
MetricsTreeNode with value 0.0. |
MetricsTreeNode(String name,
double value)
Create a new
MetricsTreeNode . |
Modifier and Type | Method and Description |
---|---|
void |
collapsePackage()
Collapse the package names.
|
boolean |
equals(Object o) |
List<MetricsTreeNode> |
getChildren() |
Map<String,MetricsTreeNode> |
getChildrenMap() |
String |
getName() |
double |
getValue() |
int |
hashCode() |
void |
insertNode(MetricsTreeNode node)
Insert a node in the tree.
|
void |
setName(String name) |
void |
setValue(double value) |
String |
toString() |
public MetricsTreeNode(String name)
MetricsTreeNode
with value 0.0.name
- the name of the nodepublic MetricsTreeNode(String name, double value)
MetricsTreeNode
.name
- the name of the nodevalue
- the value of the nodepublic double getValue()
public void setValue(double value)
public String getName()
public void setName(String name)
public Map<String,MetricsTreeNode> getChildrenMap()
public List<MetricsTreeNode> getChildren()
public void collapsePackage()
public void insertNode(MetricsTreeNode node)
node
- the node to insertCopyright © 2016–2020. All rights reserved.