neo4j/src/main/java/org/hibernate/ogm/datastore/neo4j/remote/bolt/dialect/impl/NodeWithEmbeddedNodes.java [20:47]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class NodeWithEmbeddedNodes {

	private static final Map<String, Collection<Node>> EMPTY_MAP = Collections.<String, Collection<Node>>emptyMap();

	private final Node owner;
	private final Map<String, Collection<Node>> embeddedNodes;

	public NodeWithEmbeddedNodes(Node owner) {
		this( owner, EMPTY_MAP );
	}

	public NodeWithEmbeddedNodes(Node owner, Map<String, Collection<Node>> embeddedNodes) {
		this.owner = owner;
		this.embeddedNodes = embeddedNodes == null ? EMPTY_MAP : Collections.unmodifiableMap( embeddedNodes );
	}

	public Node getOwner() {
		return owner;
	}

	/**
	 * A map where the key is the path to the node (for example 'main.address.postcode') and the value is a collection
	 * of nodes.
	 *
	 * @return The set of nodes associated per path. It's never {@code null}
	 */
	public Map<String, Collection<Node>> getEmbeddedNodes() {
		return embeddedNodes;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



neo4j/src/main/java/org/hibernate/ogm/datastore/neo4j/remote/http/dialect/impl/NodeWithEmbeddedNodes.java [20:47]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class NodeWithEmbeddedNodes {

	private static final Map<String, Collection<Node>> EMPTY_MAP = Collections.<String, Collection<Node>>emptyMap();

	private final Node owner;
	private final Map<String, Collection<Node>> embeddedNodes;

	public NodeWithEmbeddedNodes(Node owner) {
		this( owner, EMPTY_MAP );
	}

	public NodeWithEmbeddedNodes(Node owner, Map<String, Collection<Node>> embeddedNodes) {
		this.owner = owner;
		this.embeddedNodes = embeddedNodes == null ? EMPTY_MAP : Collections.unmodifiableMap( embeddedNodes );
	}

	public Node getOwner() {
		return owner;
	}

	/**
	 * A map where the key is the path to the node (for example 'main.address.postcode') and the value is a collection
	 * of nodes.
	 *
	 * @return The set of nodes associated per path. It's never {@code null}
	 */
	public Map<String, Collection<Node>> getEmbeddedNodes() {
		return embeddedNodes;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



