Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

data length in Yang-to-Java mapping

Hi all,

When a 8-bit data is defined in Yang, it will be generated to data type of java.lang.Short by yang-to-java in yangtools. However, 16-bit data in yang is also mapped to Integer and 32-bit data is mapped to Long.

Anyone could explain why 16-bit is not mapped to Short and 32 bit is not mapped to Integer, so on so forth.