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

apoc.result.NodeWithMapResult Maven / Gradle / Ivy

There is a newer version: 5.25.1
Show newest version
package apoc.result;

import org.neo4j.graphdb.Node;

import java.util.Collections;
import java.util.Map;

public class NodeWithMapResult {
    public final Node node;
    public final Map value;
    public final Map error;

    public NodeWithMapResult(Node node, Map value, Map  error) {
        this.node = node;
        this.value = value;
        this.error = error;
    }

    public static NodeWithMapResult withError(Node node, Map error) {
        return new NodeWithMapResult(node, Collections.emptyMap(), error);
    }

    public static NodeWithMapResult withResult(Node node, Map value) {
        return new NodeWithMapResult(node, value, Collections.emptyMap());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy