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 com.google.common.collect.ForwardingObject;
11 import java.util.Optional;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
13 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
14 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeSnapshotCursor;
17 * Delegating implementation of a {@link ReadableCursorOperation}.
19 * @deprecated This interface is scheduled for removal in the next major release.
21 @Deprecated(forRemoval = true)
22 abstract class DelegatingReadableCursorOperation extends ForwardingObject implements ReadableCursorOperation {
25 protected abstract DataTreeSnapshotCursor delegate();
28 public Optional<NormalizedNode<?, ?>> readNode(final PathArgument arg) {
29 return delegate().readNode(arg);
38 public DelegatingReadableCursorOperation enter(final PathArgument arg) {
39 delegate().enter(arg);