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
nodeId
HierarchyNode to seek and return.
Type Parameters
T
type of payload contained in HierarchyNode
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
nodeId
HierarchyNode to seek and return.
Type Parameters
T
type of payload contained in HierarchyNode