Separate lazy-versioned NormalizedNodeDataInput
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / stream / ForwardingNormalizedNodeDataInput.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.datastore.node.utils.stream;
9
10 import java.io.IOException;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
14 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
15 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
16
17 abstract class ForwardingNormalizedNodeDataInput extends ForwardingDataInput implements NormalizedNodeDataInput {
18
19     @Override
20     abstract @NonNull NormalizedNodeDataInput delegate() throws IOException;
21
22     @Override
23     public final NormalizedNode<?, ?> readNormalizedNode() throws IOException {
24         return delegate().readNormalizedNode();
25     }
26
27     @Override
28     public final YangInstanceIdentifier readYangInstanceIdentifier() throws IOException {
29         return delegate().readYangInstanceIdentifier();
30     }
31
32     @Override
33     public final PathArgument readPathArgument() throws IOException {
34         return delegate().readPathArgument();
35     }
36
37     @Override
38     public final SchemaPath readSchemaPath() throws IOException {
39         return delegate().readSchemaPath();
40     }
41 }