Skip to content

Add method for retrieving nested Tree child #377

Closed
@jenetics

Description

Add a method to the Tree interface, which allows selecting a child from a given tree by its path. The path of a child is defined by its indexes on the different tree levels.

final Tree<String, ?> tree = ...;
final Optional<String> child = tree.childAt(0, 1, 2);
assert tree.getChild(0) == tree.childAt(0).get();

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions