public List<T> getAllChildData(String name) {
        Node<T> node = root.getNode(name);
        if (node == null) {
            return Collections.emptyList();
        } else {
            Map<String, Node<T>> nodeList = node.getChilds();
            if (nodeList.isEmpty()) {
                return Collections.emptyList();
            }
            List<T> datas = new ArrayList<>(nodeList.size());
            node.getChilds().values().forEach(n -> datas.add(n.getData()));
            return datas;
        }
    }
public List < T > getAllChildData ( String name ) { Node < T > node = root . getNode ( name ) ; if ( node == null ) { return Collections . emptyList ( ) ; } else { Map < String , Node < T > > nodeList = node . getChilds ( ) ; if ( nodeList . isEmpty ( ) ) { return Collections . emptyList ( ) ; } List < T > datas = new ArrayList < > ( nodeList . size ( ) ) ; node . getChilds ( ) . values ( ) . forEach ( n -> datas . add ( n . getData ( ) ) ) ; return datas ; } }
获取指定路径下的所有直系子节点的数据

@param name 路径名
@return 指定路径下的所有直系子节点的数据