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.base.Preconditions;
12 import org.opendaylight.mdsal.dom.spi.shard.AbstractDataModificationCursor;
13 import org.opendaylight.mdsal.dom.spi.shard.WriteCursorStrategy;
15 class InMemoryShardDataModificationCursor extends AbstractDataModificationCursor<ShardDataModification> {
17 private InmemoryDOMDataTreeShardWriteTransaction parent;
19 InMemoryShardDataModificationCursor(final ShardDataModification root,
20 final InmemoryDOMDataTreeShardWriteTransaction parent) {
22 this.parent = Preconditions.checkNotNull(parent);
26 protected WriteCursorStrategy getRootOperation(final ShardDataModification root) {
27 return root.createOperation(null);
32 parent.cursorClosed();