Add AnydataNode specialization to OpaqueData
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / builder / impl / AbstractImmutableAnydataNodeBuilder.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.yangtools.yang.data.impl.schema.builder.impl;
9
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.schema.AnydataNode;
13 import org.opendaylight.yangtools.yang.data.impl.schema.nodes.AbstractImmutableNormalizedSimpleValueNode;
14
15 @Beta
16 public abstract class AbstractImmutableAnydataNodeBuilder<V, T extends AnydataNode<V>>
17         extends AbstractImmutableNormalizedNodeBuilder<NodeIdentifier, V, T> {
18     protected AbstractImmutableAnydataNodeBuilder() {
19
20     }
21
22     protected abstract static class AbstractImmutableAnydataNode<V>
23             extends AbstractImmutableNormalizedSimpleValueNode<NodeIdentifier, V> implements AnydataNode<V> {
24         protected AbstractImmutableAnydataNode(final NodeIdentifier nodeIdentifier, final V value) {
25             super(nodeIdentifier, value);
26         }
27     }
28 }