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 <code>type</code>
* substatement for <code>decimal64</code> built-in type.
- *
+ *
*/
public interface DecimalTypeDefinition extends TypeDefinition<DecimalTypeDefinition> {
/**
* Returns range constraints for instance of this type.
- *
+ *
* @return list of range constraints which are specified as the argument of
* the <code>range</code> which is substatement of the
* <code>type</code> statement
*/
- List<RangeConstraint> getRangeConstraints();
+ @Nonnull List<RangeConstraint> getRangeConstraints();
/**
* Returns integer between 1 and 18 inclusively. <br>
* <br>
- *
+ *
* 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();
}
package org.opendaylight.yangtools.yang.model.api.type;
import java.util.List;
+import javax.annotation.Nonnull;
import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
/**
public interface IntegerTypeDefinition extends TypeDefinition<IntegerTypeDefinition> {
/**
- * Returns Range Constraints defined for given Integer Type.
+ * Returns Range Constraints defined for given Integer Type. These are the effective constraints, e.g. they include
+ * any range constraints imposed by base types.
*
* @return Range Constraints defined for given Integer Type.
*/
- List<RangeConstraint> getRangeConstraints();
+ @Nonnull List<RangeConstraint> getRangeConstraints();
}
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 the method for getting detail data about unsigned integer.
- *
+ *
* Specifically it is the method for getting the range value.
- *
*/
public interface UnsignedIntegerTypeDefinition extends TypeDefinition<UnsignedIntegerTypeDefinition> {
-
/**
* Returns range data of the instance of the type
- * <code>UnsignedIntegerTypeDefinition</code>.
- *
+ * <code>UnsignedIntegerTypeDefinition</code>. These are the effective constraints, e.g. they include
+ * any range constraints imposed by base types.
+ *
* @return list of <code>RangeConstraint</code> which represents the YANG
* <code>range</code> substatement arguments.
*/
- List<RangeConstraint> getRangeConstraints();
+ @Nonnull List<RangeConstraint> getRangeConstraints();
}