X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fapi%2Ftype%2FDecimalTypeDefinition.java;h=75f6f434445a2b6f3734521bf776c10fc4340a3e;hb=refs%2Fchanges%2F57%2F44657%2F8;hp=edf42c4d4bfb4287e53128fbb71e2502a509280d;hpb=fe5a0790b82b95332813017eb93492b6b2cbb822;p=yangtools.git
diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/DecimalTypeDefinition.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/DecimalTypeDefinition.java
index edf42c4d4b..75f6f43444 100644
--- a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/DecimalTypeDefinition.java
+++ b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/DecimalTypeDefinition.java
@@ -8,35 +8,34 @@
package org.opendaylight.yangtools.yang.model.api.type;
import java.util.List;
-
+import javax.annotation.Nonnull;
import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
/**
* Contains methods for getting data from the YANG type
* substatement for decimal64
built-in type.
- *
*/
public interface DecimalTypeDefinition extends TypeDefinition {
/**
* Returns range constraints for instance of this type.
- *
+ *
* @return list of range constraints which are specified as the argument of
* the range
which is substatement of the
* type
statement
*/
- List getRangeConstraints();
+ @Nonnull List getRangeConstraints();
/**
* Returns integer between 1 and 18 inclusively.
*
- *
+ *
* The "fraction-digits" statement controls the size of the minimum
* difference between values of a decimal64 type, by restricting the value
* space to numbers that are expressible as "i x 10^-n" where n is the
* fraction-digits argument.
- *
+ *
* @return number of fraction digits
*/
- Integer getFractionDigits();
+ @Nonnull Integer getFractionDigits();
}