Class Node<DataT,NodeT extends Node<DataT,NodeT>>
- java.lang.Object
-
- com.azure.resourcemanager.resources.fluentcore.dag.Node<DataT,NodeT>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(String childKey)List<String>children()DataTdata()booleanhasChildren()Stringkey()Graph<DataT,NodeT>owner()voidremoveChild(String childKey)voidsetOwner(Graph<DataT,NodeT> ownerGraph)Sets reference to the graph owning this node.
-
-
-
Method Detail
-
key
public String key()
- Returns:
- this node's unique id
-
data
public DataT data()
- Returns:
- data stored in this node
-
hasChildren
public boolean hasChildren()
- Returns:
- true if this node has any children
-
addChild
public void addChild(String childKey)
- Parameters:
childKey- add a child (neighbour) of this node
-
removeChild
public void removeChild(String childKey)
- Parameters:
childKey- remove child (neighbour) of this node
-
setOwner
public void setOwner(Graph<DataT,NodeT> ownerGraph)
Sets reference to the graph owning this node.- Parameters:
ownerGraph- the owning graph
-
-