Package com.jgalgo
Interface LowestCommonAncestorDynamic.Node
-
- Enclosing interface:
- LowestCommonAncestorDynamic
public static interface LowestCommonAncestorDynamic.NodeA tree node in anLowestCommonAncestorDynamicdata structure.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <D> DgetNodeData()Get the user data of this node.LowestCommonAncestorDynamic.NodegetParent()Get the parent node of this node.voidsetNodeData(Object data)Set the user data of this node.
-
-
-
Method Detail
-
getParent
LowestCommonAncestorDynamic.Node getParent()
Get the parent node of this node.- Returns:
- the parent of this node or
nullif this node is the root of the tree.
-
getNodeData
<D> D getNodeData()
Get the user data of this node.Note that the conversion of the data stored in the implementation to the user type is unsafe.
- Type Parameters:
D- the data type- Returns:
- the user data of this node
-
setNodeData
void setNodeData(Object data)
Set the user data of this node.- Parameters:
data- new value for this node
-
-