Interface DecimalTypeDefinition
-
- All Superinterfaces:
DocumentedNode
,DocumentedNode.WithStatus
,RangeRestrictedTypeDefinition<DecimalTypeDefinition,BigDecimal>
,SchemaNode
,TypeDefinition<DecimalTypeDefinition>
public interface DecimalTypeDefinition extends RangeRestrictedTypeDefinition<DecimalTypeDefinition,BigDecimal>
Contains methods for getting data from the YANGtype
substatement fordecimal64
built-in type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static boolean
equals(DecimalTypeDefinition type, Object obj)
int
getFractionDigits()
Returns integer between 1 and 18 inclusively.static int
hashCode(DecimalTypeDefinition type)
static String
toString(DecimalTypeDefinition type)
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getDescription, getReference, getUnknownSchemaNodes
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
getStatus
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.type.RangeRestrictedTypeDefinition
getRangeConstraint
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.SchemaNode
getPath, getQName
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.TypeDefinition
getBaseType, getDefaultValue, getUnits
-
-
-
-
Method Detail
-
getFractionDigits
int getFractionDigits()
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.
- Returns:
- number of fraction digits
-
hashCode
static int hashCode(DecimalTypeDefinition type)
-
equals
static boolean equals(DecimalTypeDefinition type, Object obj)
-
toString
static String toString(DecimalTypeDefinition type)
-
-