Class Node<DataT, NodeT extends Node<DataT,NodeT>>
java.lang.Object
com.azure.resourcemanager.resources.fluentcore.dag.Node<DataT,NodeT>
- Type Parameters:
DataT- the type of the data stored in the nodeNodeT- the type of the node
- Direct Known Subclasses:
DAGNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds child (neighbour) to this node.children()Gets children (neighbours) of this node.data()Gets data stored in this node.booleanCheck whether the node has any children.key()Gets this node's unique id.owner()Gets the owner (container) graph of this node.voidremoveChild(String childKey) Removes child (neighbour) from this node.voidSets reference to the graph owning this node.
-
Constructor Details
-
Node
-
-
Method Details
-
key
-
data
-
hasChildren
public boolean hasChildren()Check whether the node has any children.- Returns:
- true if this node has any children
-
children
-
addChild
Adds child (neighbour) to this node.- Parameters:
childKey- add a child (neighbour) of this node
-
removeChild
Removes child (neighbour) from this node.- Parameters:
childKey- remove child (neighbour) of this node
-
setOwner
-
owner
-