2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.mdsal.dom.store.inmemory;
11 import com.google.common.collect.ImmutableMap;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
15 abstract class WriteableNodeWithSubshard extends WriteableModificationNode {
17 private final Map<PathArgument, WriteableModificationNode> children;
19 WriteableNodeWithSubshard(final Map<PathArgument, WriteableModificationNode> children) {
20 this.children = ImmutableMap.copyOf(children);
24 Map<PathArgument, WriteableModificationNode> getChildrenWithSubshards() {
29 WriteableModificationNode getChild(final PathArgument node) {
30 return children.get(node);
35 for (WriteableModificationNode child : children.values()) {