Class TestSpanTree.TreeNode<T>
java.lang.Object
org.eclipse.microprofile.opentracing.tck.tracer.TestSpanTree.TreeNode<T>
- Type Parameters:
T- Type of data to hold in the node.
- All Implemented Interfaces:
ConsumableTree<T>
- Enclosing class:
- TestSpanTree
Generic tree structure.
-
Constructor Summary
ConstructorsConstructorDescriptionTreeNode(T nodeData, TestSpanTree.TreeNode<T>... newChildren) Create a new node. -
Method Summary
-
Constructor Details
-
TreeNode
Create a new node.- Parameters:
nodeData- Data held in the node.newChildren- Child nodes
-
-
Method Details
-
getData
Return the data in the node.- Returns:
- Data
-
getChildren
Return the child nodes.- Returns:
- Child nodes.
-
addChild
Add new child to this node.- Parameters:
child- Child to add.- Returns:
- Newly created node.
-
toJSON
Return JSON representation.- Parameters:
nodeName- Node name to display in JSON.indentationLevel- How many instances of indentationCharactersindentationCharacters- The indentation characters to use- Returns:
- JSON
-
equals
-
hashCode
public int hashCode() -
visitTree
Recursively visit all nodes with the lambda.- Specified by:
visitTreein interfaceConsumableTree<T>- Parameters:
visitor- Lambda
-
toString
-