8347e7af70ab3341799221231ee630ac49c1335e
[mdsal.git] / binding / yang-binding / src / main / java / org / opendaylight / yangtools / yang / binding / ScalarTypeObject.java
1 /*
2  * Copyright (c) 2020 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.binding;
9
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNull;
12
13 /**
14  * A {@link TypeObject} that encapsulates an immutable native type. These are generated as YANG Binding type captures,
15  * such as those implied by {@code typedef} and parameterized {@code type} statements.
16  */
17 @Beta
18 public interface ScalarTypeObject<T> extends TypeObject {
19     /**
20      * Return encapsulated value.
21      *
22      * @return Encapsulated value.
23      */
24     @NonNull T getValue();
25 }