Module cloud.opencode.base.tree
module cloud.opencode.base.tree
OpenCode Base Tree Module
OpenCode 基础树模块
Provides tree structure processing capabilities including list-to-tree conversion, traversal, search, filtering, and diff.
提供树形结构处理能力,包括列表转树、遍历、查找、过滤和差异计算。
Key Features | 主要功能:
- OpenTree - Main facade for tree operations - 树操作门面
- List to Tree - One-line conversion from flat list - 一行代码列表转树
- Traversal - PreOrder, PostOrder, LevelOrder, Iterative - 遍历算法
- Search - Find by ID, findAll, getPath, getLeaves - 查找
- Filter - Keep matching nodes with ancestors - 过滤(保留祖先链)
- TreePrinter - ASCII art tree printing - 树形打印
- TreeDiff - Tree difference calculation - 树差异计算
- CycleDetector - Cycle detection in tree - 循环检测
- TreeNodeValidator - Node validation - 节点验证
- Since:
- JDK 25, opencode-base-tree V1.0.0
- Author:
- Leon Soo
-
Packages
ExportsPackageDescription