2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.model.api.type;
10 import java.util.List;
12 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
14 public interface DecimalTypeDefinition extends TypeDefinition<DecimalTypeDefinition> {
16 List<RangeConstraint> getRangeStatements();
19 * Returns integer between 1 and 18 inclusively. <br>
22 * The "fraction-digits" statement controls the size of the minimum
23 * difference between values of a decimal64 type, by restricting the value
24 * space to numbers that are expressible as "i x 10^-n" where n is the
25 * fraction-digits argument.
27 * @return number of fraction digits
29 Integer getFractionDigits();