com.link_intersystems.graph.tree.NodeTreeModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lis-commons-graph Show documentation
Show all versions of lis-commons-graph Show documentation
Link Intersystems Commons Graph (lis-commons-graph) is a collection of reusable software components
that provide support for graph and tree related programming tasks, such as models and search algorithms.
package com.link_intersystems.graph.tree;
import com.link_intersystems.graph.Node;
import java.util.stream.Stream;
/**
* A {@link TreeModel} adaption for the {@link Node} interface.
*
* @author René Link {@literal }
*/
public class NodeTreeModel implements TreeModel {
@Override
public Stream extends Node> getChildren(Node parent) {
return Iterators.toStream(parent.getReferences());
}
}