lookup

Search target FieldDefinitionList for a FieldDefinition item with the requested fieldId.

Receiver

FieldDefinitionList to search.

Return

FieldDefinition matching fieldId or null if none is found.

Parameters

fieldId

Field ID to seek.


fun <T> HierarchyNode<T>.lookup(nodeId: T): HierarchyNode<T>?

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.


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.


Search a sequence of nodes for a matching node id.

Receiver

Sequence to search.

Return

First matching node or null if no match is found.

Parameters

nodeId

Node id to locate.