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

apoc.result.NodeValueErrorMapResult 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 NodeValueErrorMapResult {
    public final Node node;
    public final Map value;
    public final Map error;

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy