lookup
Search the hierarchy for the node with the given nodeId.
Receiver
HierarchyNode to search.
Return
Matching HierarchyNode or null if the node is not found.
Parameters
T
type of payload contained in HierarchyNode
nodeId
HierarchyNode to seek and return.
public final static HierarchyNode<T> lookup<T extends Any>(Sequence<HierarchyNode<T>> $self, T nodeId)
Recursively search a list of hierarchy nodes for the node with the given nodeId.
Receiver
Iterable of HierarchyNode to search.
Return
Matching HierarchyNode or null if the node is not found.
Parameters
T
type of payload contained in HierarchyNode
nodeId
HierarchyNode to seek and return.