All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.link_intersystems.graph.tree.NodeTreeModel Maven / Gradle / Ivy

Go to download

There is a newer version: 1.9.7
Show newest version
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 getChildren(Node parent) {
        return Iterators.toStream(parent.getReferences());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy