V - the node's value. Ex a full span or a tuple like (serviceName, isLocal)public final class Node<V> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Node.TreeBuilder<V>
Some operations do not require the entire span object.
|
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
Node<V> |
addChild(Node<V> child) |
Collection<Node<V>> |
children()
Returns the children of this node.
|
boolean |
isSyntheticRootForPartialTree() |
Node<V> |
parent()
Returns the parent, or null if root
|
Iterator<Node<V>> |
traverse()
Traverses the tree, breadth-first.
|
V |
value()
Returns the value, or null if
isSyntheticRootForPartialTree() |
Node<V> |
value(V newValue) |
@Nullable public V value()
isSyntheticRootForPartialTree()public Collection<Node<V>> children()
public boolean isSyntheticRootForPartialTree()
Copyright © 2015–2018 OpenZipkin. All rights reserved.