X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Futil%2FInt16.java;h=829cd140b18a04740e26ba75b4ab5c851e514866;hb=9ceed566491d172e02220b04ec6869867f2f2473;hp=40857d1c32526fcca3b1c0f16dfe246fc2dcf107;hpb=4ce0f6630bc576b97c8c9a08848aafb6e90a75b0;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int16.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int16.java index 40857d1c32..829cd140b1 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int16.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int16.java @@ -7,39 +7,32 @@ */ package org.opendaylight.controller.yang.model.util; -import java.util.List; - import org.opendaylight.controller.yang.common.QName; +import org.opendaylight.controller.yang.model.api.SchemaPath; import org.opendaylight.controller.yang.model.api.type.IntegerTypeDefinition; -import org.opendaylight.controller.yang.model.api.type.RangeConstraint; /** * Implementation of Yang int16 built-in type.
* int16 represents integer values between -32768 and 32767, inclusively. The * Java counterpart of Yang int16 built-in type is {@link Short}. - * + * * @see AbstractSignedInteger */ -public class Int16 extends AbstractSignedInteger { - +public final class Int16 extends AbstractSignedInteger { private static final QName name = BaseTypes.constructQName("int16"); - private Short defaultValue = null; - private static final String description = - "int16 represents integer values between -32768 and 32767, inclusively."; + private final Short defaultValue = null; + private static final String description = "int16 represents integer values between -32768 and 32767, inclusively."; + private final IntegerTypeDefinition baseType; - public Int16() { - super(name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); - } + public Int16(final SchemaPath path) { + super(path, name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = this; - public Int16(final List rangeStatements, - final String units, final Short defaultValue) { - super(name, description, rangeStatements, units); - this.defaultValue = defaultValue; } @Override public IntegerTypeDefinition getBaseType() { - return this; + return baseType; } @Override