liujie
2026-01-14 f976a39b294f8c7dd60bcd2c661983c0dcc97fc6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.estate.expert.admin.utils.tree.helper;
 
import com.estate.expert.admin.utils.tree.TreeNode;
 
/**
 * 节点过滤器
 */
public interface NodeFilter<T> {
 
    /**
     * 判断是否需要添加节点
     * 用于树的剪枝
     */
     boolean shouldAdd(TreeNode<T> node);
}