Uses of Class
cloud.opencode.base.tree.virtual.VirtualTree
Packages that use VirtualTree
-
Uses of VirtualTree in cloud.opencode.base.tree
Methods in cloud.opencode.base.tree that return VirtualTreeModifier and TypeMethodDescriptionstatic <T,ID> VirtualTree <T, ID> OpenTree.virtualTree(ID id, T data, LazyChildLoader<VirtualTree<T, ID>, ID> childLoader) Create a virtual tree root with lazy loading 创建支持懒加载的虚拟树根节点Methods in cloud.opencode.base.tree with parameters of type VirtualTreeModifier and TypeMethodDescriptionstatic <T,ID> void OpenTree.preloadVirtualTree(VirtualTree<T, ID> root, int depth) Preload virtual tree to specified depth 预加载虚拟树到指定深度Method parameters in cloud.opencode.base.tree with type arguments of type VirtualTreeModifier and TypeMethodDescriptionstatic <T,ID> VirtualTree <T, ID> OpenTree.virtualTree(ID id, T data, LazyChildLoader<VirtualTree<T, ID>, ID> childLoader) Create a virtual tree root with lazy loading 创建支持懒加载的虚拟树根节点 -
Uses of VirtualTree in cloud.opencode.base.tree.virtual
Classes in cloud.opencode.base.tree.virtual that implement interfaces with type arguments of type VirtualTreeMethods in cloud.opencode.base.tree.virtual that return VirtualTreeModifier and TypeMethodDescriptionVirtualTree.Builder.build()Build the virtual tree node 构建虚拟树节点static <T,ID> VirtualTree <T, ID> VirtualTree.root(ID id, T data, LazyChildLoader<VirtualTree<T, ID>, ID> childLoader) Create a root virtual tree node 创建根虚拟树节点Methods in cloud.opencode.base.tree.virtual that return types with arguments of type VirtualTreeModifier and TypeMethodDescriptionFind node by ID (searches tree recursively) 通过ID查找节点(递归搜索树)List<VirtualTree<T, ID>> Find all nodes matching predicate 查找所有匹配谓词的节点VirtualTree.findInCache(ID nodeId) Find node by ID in cache 从缓存中查找节点List<VirtualTree<T, ID>> VirtualTree.getChildren()Method parameters in cloud.opencode.base.tree.virtual with type arguments of type VirtualTreeModifier and TypeMethodDescriptionVirtualTree.Builder.childLoader(LazyChildLoader<VirtualTree<T, ID>, ID> childLoader) Set child loader 设置子节点加载器Set node cache 设置节点缓存static <T,ID> VirtualTree <T, ID> VirtualTree.root(ID id, T data, LazyChildLoader<VirtualTree<T, ID>, ID> childLoader) Create a root virtual tree node 创建根虚拟树节点voidVirtualTree.setChildren(List<VirtualTree<T, ID>> children) voidVirtualTree.traverseBreadthFirst(Consumer<VirtualTree<T, ID>> visitor) Traverse level by level (breadth-first) 层级遍历(广度优先)voidVirtualTree.traversePostOrder(Consumer<VirtualTree<T, ID>> visitor) Traverse in post-order 后序遍历voidVirtualTree.traversePreOrder(Consumer<VirtualTree<T, ID>> visitor) Traverse in pre-order 前序遍历voidVirtualTree.traverseWithDepthLimit(Consumer<VirtualTree<T, ID>> visitor, int maxDepth) Traverse with depth limit (for controlled lazy loading) 带深度限制的遍历(用于控制懒加载)Constructor parameters in cloud.opencode.base.tree.virtual with type arguments of type VirtualTreeModifierConstructorDescriptionVirtualTree(ID id, ID parentId, T data, LazyChildLoader<VirtualTree<T, ID>, ID> childLoader) Create virtual tree node with lazy loading 创建支持懒加载的虚拟树节点VirtualTree(ID id, ID parentId, T data, LazyChildLoader<VirtualTree<T, ID>, ID> childLoader, Map<ID, VirtualTree<T, ID>> nodeCache, int maxCacheSize, boolean cacheEnabled) Create virtual tree node with configuration 创建可配置的虚拟树节点VirtualTree(ID id, ID parentId, T data, LazyChildLoader<VirtualTree<T, ID>, ID> childLoader, Map<ID, VirtualTree<T, ID>> nodeCache, int maxCacheSize, boolean cacheEnabled) Create virtual tree node with configuration 创建可配置的虚拟树节点