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
8 package org.opendaylight.mdsal.dom.spi.shard;
10 import static java.util.Objects.requireNonNull;
12 import com.google.common.annotations.Beta;
13 import org.eclipse.jdt.annotation.NonNullByDefault;
14 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
17 * Definition of a subshard containing the prefix and the subshard.
19 * @deprecated This interface is scheduled for removal in the next major release.
21 @Deprecated(forRemoval = true)
24 public final class ChildShardContext {
25 private final WriteableDOMDataTreeShard shard;
26 private final DOMDataTreeIdentifier prefix;
28 public ChildShardContext(final DOMDataTreeIdentifier prefix, final WriteableDOMDataTreeShard shard) {
29 this.prefix = requireNonNull(prefix);
30 this.shard = requireNonNull(shard);
33 public WriteableDOMDataTreeShard getShard() {
37 public DOMDataTreeIdentifier getPrefix() {